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.

Auto-save untitled buffers #942

Closed
Closed

Description

@matthewmccullough

One feature I love of an increasing number of Mac OSX Lion and above apps is the auto-saving of untitled buffers. If I quit an app that supports this behavior and re-open it, even untitled buffers (never explicitly named and saved) are restored. This lets me have greater confidence about using these apps as "clipboards," knowing that even if I crash or accidentally close the app, I'll have some reasonably up-to-date copy of the file restored.

Sublime is the front-of-mind example for this in my daily workflow.

Activity

  1. JoshCoady commented on Aug 20, 2014

    @JoshCoady

    +1 ... this is one of the features I'd need to fully leave Sublime behind

  2. thedaniel commented on Aug 20, 2014

    @thedaniel
    Contributor

    We might be able to consider this as part of some upcoming refactoring on how projects work in general. What do you think @nathansobo ?

  3. LRomandine commented on Sep 2, 2014

    @LRomandine

    The plugin "autosave" for notepad++ does this as well and is my only reason for not fully switching to Atom.

  4. kice commented on Jan 29, 2015

    @kice

    +1 I will love this feature

  5. NamPNQ commented on Mar 2, 2015

    @NamPNQ

    +1

  6. Zireael07 commented on Mar 2, 2015

    @Zireael07

    I agree that it'd be great!

  7. JoshCoady commented on Mar 2, 2015

    @JoshCoady

    FYI ... I've been using the community package save-session by mpeterson2
    which has the ability to restore unsaved changes, even changes to untitled
    buffers.

    -Josh

    On Mon, Mar 2, 2015 at 1:40 AM, Zireael07 [email protected] wrote:

    I agree that it'd be great!

    —
    Reply to this email directly or view it on GitHub
    #942 (comment).

  8. phsilva commented on Mar 25, 2015

    @phsilva

    I am so used to this on other editors that I don't even bother to save some stuff, just use as scratchpad and know that it will be there all the time.

    +1

  9. off-by-some commented on Apr 22, 2015

    @off-by-some

    +1

  10. mehcode commented on Apr 22, 2015

    @mehcode
    Contributor

    Re-posting opening comment from #6455


    I think this is critical. It's not about atom crashing or not crashing. It's about a myriad of other things crashing on a computer. It's about being able to not kill a junior because he or she accidentally hit the reset button on your computer. Sublime gives you the "don't worry about it" guarantee. It's a state of mind and affects your workflow. I was used to having many unnamed buffers open with random scratch data. I didn't need to save it anywhere but sublime kept them around.


    Open atom, type some text, and hit Ctrl+Q

    screenshot from 2015-04-21 10 40 49

    I should not be able to lose work at all, at any time, for any reason. In sublime I can do the above and then immediately re-open and all is well.


    To summarize, we need a few things:

    • Save unnamed buffers when atom is closed normally
    • Porting the "hot exit" feature from sublime. When atom is closed, it is immediately closed without any popup and can be re-opened in the exact state it was left
    • On some configurable interval we save the state to allow the application to pick back up in case of fire
  11. Leonick commented on Apr 23, 2015

    @Leonick

    This is a feature I'd really like to see, especially now that Atom remembers windows without any addons. If Atom is going to remember anything from the last session it needs to remember pretty much everything.

    • Open windows
    • Open tabs
    • Order of the tabs
    • Content of all tabs, doesn't matter if it's a named and previously saved file or a new unsaved one
    • For a previously saved tab, changes should not be saved to that file on exit. It needs to me saved like untitled files until I choose to save it.

    I'm rather new to Atom. Previously been a user of Notepad++ which handles this perfectly, however I'm moving to Atom as a I need good text-editor available across platforms.

  12. BretFisher commented on May 7, 2015

    @BretFisher

    +1

    I use both atom and sublime, but only use sublime for scratch/temp stuff because of autosave.

  13. ggamel commented on May 10, 2015

    @ggamel

    Please implement. Now that remembering tabs/open windows is implemented (in 0.193.0), this feels like the logical next step. Being able to do this across all other apps on my system means Atom feels out of touch not allowing me to scratchpad ideas/code.

    🙏 🙏 🙏

  14. 7 remaining items

  15. dansoton commented on Jun 30, 2015

    @dansoton

    +1 Must have

    I mistakenly thought that this was part of 1.0 (#1603) but appears that is only to do with remembering which tabs were open and not saving state.

    IMHO it's crazy this wasn't part of 1.0. I thought it was finally the time I was going to switch over from ST3 as my default text editor, but again nope, back I go :(

  16. lukehefson commented on Jul 1, 2015

    @lukehefson

    @dansoton You might want to check out save session as an interim solution. It's pretty awesome.

  17. dwelle commented on Jul 2, 2015

    @dwelle
    Contributor

    I agree, this should have been part of 1.0, but we can always make up for it.

  18. sanbor commented on Jul 3, 2015

    @sanbor

    Yes, this was one of the "amazing" and disrupting features from Sublime that I was missing. So far save-session is doing a good job.

  19. sigmascord commented on Aug 4, 2015

    @sigmascord

    +1

  20. santosh commented on Aug 5, 2015

    @santosh

    👍

  21. hseitz commented on Aug 11, 2015

    @hseitz

    +1

  22. bitbonk commented on Aug 11, 2015

    @bitbonk

    +1

    I really second what @mehcode said!

  23. hemang-ajmera commented on Aug 13, 2015

    @hemang-ajmera

    Definitely +1.
    I just started using atom and never thought that this feature would not be part of the core. It is default behavior in notepad++, ST2, ST3.

  24. mnquintana commented on Aug 13, 2015

    @mnquintana
    Contributor

    Thanks for the feedback everyone! However, all these +1s and 👍s are just adding noise, so to minimize that I'm going to lock this issue for now – we may unlock it once someone starts working on this enhancement to get further feedback.

  25. locked and limited conversation to collaborators on Aug 13, 2015
  26. winstliu commented on Dec 9, 2015

    @winstliu
    Contributor

    This will be fixed in Atom 1.4.0 and 1.4.0-beta0 (or you can get the new behavior right now by building master).

    Thanks for the patience everyone! If you notice bugs, please open a new issue for that.

  27. winstliu commented on Dec 10, 2015

    @winstliu
    Contributor

    This feature is now available in 1.4.0-beta0. If everyone can try it out and report any bugs they experience, that would be great! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions