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

Reopen windows when relaunching Atom #1603

Closed

Description

@jglovier

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.

Activity

  1. jeffrabovsky commented on May 26, 2014

    @jeffrabovsky

    👍

  2. navarro75 commented on May 26, 2014

    @navarro75

    Nice!

  3. adykto commented on May 26, 2014

    @adykto

    I hope to see this working very soon!

  4. parasyte commented on May 28, 2014

    @parasyte

    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.

  5. 3871968 commented on Jun 15, 2014

    @3871968

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

  6. atheleron commented on Jun 28, 2014

    @atheleron

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

  7. whitlockjc commented on Jul 3, 2014

    @whitlockjc

    +1

  8. rtimoshenko commented on Sep 24, 2014

    @rtimoshenko

    +1

  9. lstroud commented on Oct 3, 2014

    @lstroud

    +1

  10. jhrmnn commented on Oct 7, 2014

    @jhrmnn

    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?

  11. jeffmcneill commented on Oct 12, 2014

    @jeffmcneill

    Is this issue in a milestone somewhere? +1

  12. screendriver commented on Oct 28, 2014

    @screendriver

    +1

  13. Mil0dV commented on Nov 24, 2014

    @Mil0dV

    +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.

  14. vmarkovtsev commented on Dec 2, 2014

    @vmarkovtsev

    +1

  15. 129 remaining items

  16. gnomed commented on May 11, 2016

    @gnomed

    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?

  17. niij commented on Jun 9, 2016

    @niij

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

  18. winstliu commented on Jun 9, 2016

    @winstliu
    Contributor

    @niij Please open a new issue.

  19. Vvkmnn commented on Jun 12, 2016

    @Vvkmnn

    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
  20. niij commented on Jun 13, 2016

    @niij

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

  21. wmertens commented on Jun 13, 2016

    @wmertens

    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 [email protected]
    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)

  22. marcosfede commented on Jul 3, 2016

    @marcosfede

    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

  23. itbeyund commented on Jul 18, 2016

    @itbeyund

    怎么下载

  24. winstliu commented on Jul 18, 2016

    @winstliu
    Contributor

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


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

  25. marcosfede commented on Jul 18, 2016

    @marcosfede

    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

  26. lsk-boy-f commented on Jul 20, 2016

    @lsk-boy-f

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

  27. winstliu commented on Jul 20, 2016

    @winstliu
    Contributor

    @x13945 please open a new issue.

  28. bb-git commented on Jul 21, 2016

    @bb-git

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

  29. mnquintana commented on Jul 21, 2016

    @mnquintana
    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.

  30. locked and limited conversation to collaborators on Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions