Gabriel
Gabriel

Reputation: 42329

Mimic Sublime's handling of unsaved files in Atom

Sublime has this cool feature where you can create a new file (or modify an existing one) and close the text editor without having to explicitly save the modifications.

Next time the editor is opened, the unsaved modifications will still be there.

Is there a way to mimic this behaviour in atom?

Upvotes: 4

Views: 834

Answers (2)

rozumir
rozumir

Reputation: 905

This functionality is already included in Atom by default now.

  • Settings -> Core Settings uncheck Open Empty Editor on Start
  • Set Restore Previous Windows on Start to Always.
  • Settings -> Packages -> autosave. In package settings check Enabled.

Also, restore will not work in Atom unless at least one Project has been added to the Project pane. You can add anything there. You can just add my Documents folder.

Upvotes: 4

sergioFC
sergioFC

Reputation: 6016

This sublime feature is called hot exit. Although atom doesn't has this feature this package claims to implement it.

Note: I haven't tested it, so I don't know if it really works; be careful in order to avoid losing your work.

Upvotes: 1

Related Questions