Text editor app that restores unsaved files that were open in the last session
There's a great feature in Notepad++, that you can open several new tab/editor, like temp editors and when closing the whole editor app, it doesn't ask to save the new unsaved tabs. The app knows to restore the app next time with all the temp tabs.
This feature is great when trying to figure out a problem and you want to paste several log snippets. You don't want to save them as files and you don't want to loose them if you need to restart (power outage or battery drain).
So, is there a Linux app that has this feature?
So far I've tried geany, gedit and kedit and couldn't find this feature in them.
Atom totally does this :) By default it always opens with all the tabs from the last session, whether or not they have been saved, with no need to explicitly set this feature.
Here I just launched atom and it opens with all tabs from the previous session, including unsaved tabs:
If atom is already open and you launch a new instance, it will be blank and if you have more than one atom window open, and close all of them, when you launch atom again, it will return to the session that was closed last.
It has lots of other awesome features too. You can get it from this ppa:
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
or download the .deb
package from the website (the file is actually called deb
)
wget https://atom.io/download/deb
sudo dpkg -i deb
Thanks to @cat for reminding me to mention that Atom is FOSS (free as in speech and free as in beer). It's MIT licensed and is in active development on GitHub
Documentation main page here with lots of how-tos
Enjoy!
Sublime Text has this feature, and it is enabled by default.
To be honest, I haven't tried the Linux version of Sublime Text, only the Windows one, but I assume it will work the same. (I just saw this question in the sidebar in another Stack Exchange.)