You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Add setting to disable restoring last session #6605
It's useful that atom can remember the files/folders you had open last time and then re-open them next time you start atom. I can't seem to figure out how to turn off this behavior though, I generally want to start clean each time I open atom.
Is there a config option to enable/disable this feature? Or could we implement a dialog box when closing atom that asks if you want it to remember what you had open?
Reacted by William Entriken, M. Grady, MultiplyByZer0, La Ode Muhammad Fadlun Akbar, cignoir, Dozer, Matt Groth and Jinal Kothari
Is there a config option to enable/disable this feature?
As far as I know, there's no such option currently. /cc @maxbrunsfeld
Or could we implement a dialog box when closing atom that asks if you want it to remember what you had open?
That's an interesting idea as well. Personally, I think a config option might be less annoying than a dialog which pops up every time you close Atom. Or even a new command, as @andya9 suggested. 🎹
I think a config setting to enable / disable this might not be a bad idea – to be fair, Sublime has a config setting for their equivalent of this feature (hot_exit).
I also find this behaviour unneeded. It's not a bad thing to have, but I'd prefer it to start clean. Make it a setting, preferably. I shouldn't have to remember to type a specific command or keybbnd. if I want Atom to close the way I desire. 👍
@tschf I added that setting. It works for me when opening Atom without specifying a folder. But when I open Atom in a folder (atom some/dir) I still see the open files from the previous session. Since I almost never open Atom without specifying a folder, the issue remains for me
The issue remains, but @tschf comment stands and worked for me. I had a problem where I opened a webdav file (atom took a very long time to launch, and then kept crashing), so editing config.cson seemed to me at least a very minor price to pay for getting the editor to work again.
@martinosorb can you please elaborate? What annoys you a lot? If the lack of a setting to disable restoring the last session is what is annoying you, please be aware that the restorePreviousWindowsOnStart option will prevent restoring the last session.
I think it's best to open a new issue so as to not confuse the two (no setting to disable restoring state vs. setting not applying when explicitly giving a path argument).
Activity
izuzak commentedon May 5, 2015
As far as I know, there's no such option currently. /cc @maxbrunsfeld
That's an interesting idea as well. Personally, I think a config option might be less annoying than a dialog which pops up every time you close Atom. Or even a new command, as @andya9 suggested. 🎹
mnquintana commentedon May 5, 2015
Related to #6495
(:+1: for the command suggestion)
I think a config setting to enable / disable this might not be a bad idea – to be fair, Sublime has a config setting for their equivalent of this feature (
hot_exit).samis commentedon May 9, 2015
I also find this behaviour unneeded. It's not a bad thing to have, but I'd prefer it to start clean. Make it a setting, preferably. I shouldn't have to remember to type a specific command or keybbnd. if I want Atom to close the way I desire. 👍
jonathanrdelgado commentedon May 15, 2015
+1 for setting to disable. A temp fix for this is deleting
~/.atom/storage/application.json(for windows at least)chloerei commentedon May 17, 2015
+1 I want to disable this feature.
piranna commentedon May 20, 2015
I think this should be disable by default and "restore last session instead of open current folder" being a config opt-in, not an opt-out.
motam commentedon May 20, 2015
+1 for the previous behavior.
When launched from the CLI, "open latest" should be an option.
maxbrunsfeld commentedon May 20, 2015
Some other discussion of this happened here: #6873.
travis-hooper commentedon May 28, 2015
👍
jamesqo commentedon Jun 21, 2015
+1, this should be made an option in the config files.
ffflorian commentedon Jun 24, 2015
+1
Thank you for the hint, @jonathandelgado!
A short workaround for Linux would be to create a script which deletes the
application.jsonfile before starting Atom:Copy the above lines into an editor, save it as
atom.shinto your home folder (/home/[username]/) and make it executable with the commandFinally change the application link in your OS launcher to run the script instead of Atom.
40 remaining items
neddy commentedon Sep 1, 2016
@tschf Thanks, that works for me. So much better for me...
nathansobo commentedon Sep 1, 2016
@maxbrunsfeld Do you think we could add this to the schema so people see it in settings?
Ben3eeE commentedon Sep 1, 2016
Combine that with rewording the
Open Empty Editor On Startsetting. #10623andreaferretti commentedon Sep 13, 2016
@tschf I added that setting. It works for me when opening Atom without specifying a folder. But when I open Atom in a folder (
atom some/dir) I still see the open files from the previous session. Since I almost never open Atom without specifying a folder, the issue remains for meLewiscowles1986 commentedon Oct 6, 2016
The issue remains, but @tschf comment stands and worked for me. I had a problem where I opened a webdav file (atom took a very long time to launch, and then kept crashing), so editing config.cson seemed to me at least a very minor price to pay for getting the editor to work again.
JamesVG1 commentedon Feb 19, 2017
I opened bootstrap.css.map. and now every time i open Atom, it opens it automatically and freezes.
this feature should really be able to turn off!
nathansobo commentedon Feb 21, 2017
Use
--clear-window-statefor the time being.winstliu commentedon Feb 21, 2017
Don't forget about the
restorePreviousWindowsOnStartoption (which is why this issue has been closed).martinosorb commentedon Jun 13, 2017
+1, this annoys me a lot...
winstliu commentedon Jun 13, 2017
@martinosorb can you please elaborate? What annoys you a lot? If the lack of a setting to disable restoring the last session is what is annoying you, please be aware that the
restorePreviousWindowsOnStartoption will prevent restoring the last session.martinosorb commentedon Jun 13, 2017
That seems to work only in the case of atom being opened without a path specification, am I wrong?
winstliu commentedon Jun 13, 2017
@martinosorb Ah, good point. Would you mind opening a new issue for that if one doesn't already exist?
martinosorb commentedon Jun 14, 2017
Somebody above was proposing to reopen this one because of that issue.
winstliu commentedon Jun 14, 2017
I think it's best to open a new issue so as to not confuse the two (no setting to disable restoring state vs. setting not applying when explicitly giving a path argument).
Aleksandern commentedon Jun 21, 2017
Just in case
https://discuss.atom.io/t/remember-open-projects-when-reopening-atom/7053/37