Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Reopen windows when relaunching Atom #1603

Closed
jglovier opened this issue Feb 27, 2014 · 146 comments · Fixed by #6380
Closed

Reopen windows when relaunching Atom #1603

jglovier opened this issue Feb 27, 2014 · 146 comments · Fixed by #6380
Assignees

Comments

@jglovier
Copy link
Contributor

A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.

This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.

It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.

@jrab89
Copy link

jrab89 commented May 26, 2014

👍

@navarro75
Copy link

Nice!

@adykto
Copy link

adykto commented May 26, 2014

I hope to see this working very soon!

@parasyte
Copy link

It looks like this is mostly ready to go, even. Atom already keeps track of what was last open, and dumps it to JSON in ~/.atom/storage/ The next step is loading these state files at startup.

@3871968
Copy link

3871968 commented Jun 15, 2014

This feature is also in Brackets, the text editor I used to use.

@atheleron
Copy link

I was missing that option to!! finally I found package that do just that :) https://atom.io/packages/open-last-project

@whitlockjc
Copy link

+1

@rtimoshenko
Copy link

+1

@lstroud
Copy link

lstroud commented Oct 3, 2014

+1

@jhrmnn
Copy link

jhrmnn commented Oct 7, 2014

Isn't there a package which would just support switching between ~/.atom/storage/editor-* sessions? Hell, those JSONs even contain a project field, it should be extremely easy to write one for someone who's already written a package for Atom. I don't understand why the framework doesn't have a GUI and is only accessible via $ atom <path>. Or am I wrong?

@jeffmcneill
Copy link

Is this issue in a milestone somewhere? +1

@screendriver
Copy link

+1

@Mil0dV
Copy link

Mil0dV commented Nov 24, 2014

+1

As far as I found there is no solution yet when having multiple projects open. Very important aspect IMO: re-opening unsaved documents in the state they were in before the restart, so no work is lost.

@vmarkovtsev
Copy link

+1

@dwelle
Copy link
Contributor

dwelle commented Dec 4, 2014

@Mil0dV +1, reopening unsaved files (i.e. saving their state into a temp folder) is very important to me, as well.

@antarr
Copy link

antarr commented Dec 19, 2014

+1

@snario
Copy link

snario commented Dec 4, 2015

Still experiencing it on 1.2.4. I guess I'll make an issue.

On Fri, Dec 4, 2015 at 12:21 PM Wliu notifications@github.com wrote:
Please fix this

This has already been fixed. Please make sure you're running a recent version of
Atom (1.2.x should be fine). If you're still experiencing this even on 1.2.x,
please file a new bug.


Reply to this email directly or view it on GitHub .

@alexchandel
Copy link
Contributor

@50Wliu It is not fixed. It has never been fixed on OS X. Never. I have tested it in every single version since 1.0.4. Pretending it's fixed and asking others to open new bugs helps no one. To replicate:

  1. Open Atom 1.3.2 on OS X 10.11.1.
  2. Add a project folder, leave some tabs open, and close Atom.
    • Repeat Step 2 multiple times for extra fail
  3. Reopen Atom by double-clicking a file associated with it, outside any project.
  4. Atom completely forgets what was last open, and launches with a single window open to double-clicked file's folder, with single tab for the double-clicked file.

@winstliu
Copy link
Contributor

Pretending it's fixed and asking others to open new bugs helps no one

There are multiple people on Mac who report this working for them, so I repeat: please make a new issue, and include the information asked for in the debugging guide and CONTRIBUTING.md.

EDIT: I notice you already have - thanks :)

If it is then determined that this functionality has completely regressed, this issue will be re-opened.

@pavel-main
Copy link

Experiencing this on 1.3.2 and OSX 10.11.2

@snario
Copy link

snario commented Dec 20, 2015

I think I have fixed this by doing

rm -rf ~/.atom/compile-cache

@aliwatters
Copy link

I was experiencing related symptoms on Ubuntu - a session from months ago was recreated on every restart of atom.

rm -rf ~/.atom/compile-cache

seems to have fixed the problem here as well - @snario thanks - first time I saw that suggestion.

@rdibona
Copy link

rdibona commented Feb 16, 2016

Thank you to @snario -- that worked for me on Mac OSX 10.11.3, Atom 1.5.3. I'm using Atom-Project-Manager and it restored my last open project finally.

How did you figure that fix out and why did that fix it? Thanks again.

@mwinham81
Copy link

@snario Thank you! This worked for me as well.

@alexchandel
Copy link
Contributor

For reference, issue #10044 tracks the "multiple window" bug in the implementation of this issue.

@CoWinkKeyDinkInc
Copy link

So is this issue fixed? Atom on 1.7.2 still doesn't remember to keep project folders in the sidebar.

@netfishx
Copy link

+1,Atom 1.7.2 in my macos 10.11.4 doesn't keep my project

@winstliu
Copy link
Contributor

winstliu commented Apr 26, 2016

CoWinkKeyDinkInc @netfishx Please open new issues and provide all relevant information necessary to help track down your bugs.

@KeinborgMichael
Copy link

+1,Atom 1.7.3 in my macos 10.11.4 doesn't keep my project

@winstliu
Copy link
Contributor

winstliu commented May 6, 2016

@KeinborgMichael Please open a new issue.

@gnomed
Copy link

gnomed commented May 11, 2016

dear god why was this not implemented as a plugin and is instead baked right into the core editor? Can't the atom devs adhere by their own philosophies?

@niij
Copy link

niij commented Jun 9, 2016

+1 Mac v10.11 and Atom 1.8.0 isn't keeping my state between relaunches of Atom

@winstliu
Copy link
Contributor

winstliu commented Jun 9, 2016

@niij Please open a new issue.

@Vvkmnn
Copy link

Vvkmnn commented Jun 12, 2016

OSX Fix from old thread:

Unbelievable. Finally got it working.

Problem: On a mac, if you close using the red X button in the window, the Atom will still be running. So (now obviously) this is the state it saves, an empty atom.

So, you have to close it using Cmd + Q. Then it will restore correctly the next time.

PS: There should be an option in the settings to close the app completely with the X button.

Referenced in #6605, and hopefully implemented in Atom 1.8.0-beta0 via #11324.

Other temporary fixes include:

  • Clearing the cache
    rm -rf ~/.atom/compile-cache
  • And using the atom-project manager:
    apm install atom-project-manager

@niij
Copy link

niij commented Jun 13, 2016

@Vvkmnn Thank you! Using CTRL-Q instead of the Red X works for me.

@wmertens
Copy link

Note that this behavior is the default behavior of apps on OS X. An app can
be running, and it can optionally have windows.

On Mon, Jun 13, 2016 at 4:29 PM Brandon Annin notifications@github.com
wrote:

@Vvkmnn https://github.com/Vvkmnn Thank you! Using CTRL-Q instead of
the Red X works for me.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1603 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AADWlkXiD0pkHjLS00cFDOl_csXasE8Bks5qLWlBgaJpZM4Blkyg
.

Wout.
(typed on mobile, excuse terseness)

@marcosfede
Copy link

I have tried removing complile-cache and installing atom-project-manager. still not restoring my previous project on OS X, even if I close it with cmd-Q

@itbeyund
Copy link

怎么下载

@winstliu
Copy link
Contributor

@Leader138 请您用英文,所以别的人可以明白您在说什么呢。谢谢!您要下载什么?


Please use English, so that others can understand what you're saying. Thanks! What are you trying to download?

@marcosfede
Copy link

like @eliotsykes suggested on #10044 , Instead of opening my project folder with a symlink, I used the full path , and now when I exit atom with cmd+Q the project restores succesfully. however, if I just close atom clicking the red close button then It restores empty, so it seems like there are two separate problems, one with symlinks and one with atom saving a blank project on mac

@lsk-boy-f
Copy link

I m using Atom 1.8.0 on Ubuntu16.04LTS x64, and it not reopen the files I opened last time.

@winstliu
Copy link
Contributor

@x13945 please open a new issue.

@bb-git
Copy link

bb-git commented Jul 21, 2016

+1 mac not restoring the tree view if you close using the red x

@mnquintana
Copy link
Contributor

@bb-git Please open a issue for this, if there isn't one already.

Since this was implemented a long, long time ago, I'm going to lock this to keep noise levels down. If you run into issues with Atom not restoring UI state correctly, please see the Contributing guide first, then open a new issue for it if there isn't one already.

@atom atom locked and limited conversation to collaborators Jul 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.