9

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.

Zanna
  • 72,312

4 Answers4

11

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!

Zanna
  • 72,312
2

On Ubuntu 24.04.2 LTS there is the notepad-plus-plus snap which allows Notepad++ to be used via wine.

This has the temp editors feature like when Notepad++ is run under Windows. E.g. for the following example where I pasted the question text into a temp editor, closed and then re-opened Notepad++: Notepad++ with temp file on display

There is also the shortcut on the Ubuntu dock.

The snap allows Notepad++ to updated itself. E.g. I hadn't used it recently, but upon opening it offered to update to v8.7.4 and when through the re-install like the Windows version does.

As well as the Notepad++ snap, running apt search notepad++ reported the following package which I haven't tried:

notepadqq/noble 2.0.0~beta1-4build2 amd64
  Notepad++-like editor for Linux
2

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

dan-gph
  • 171
1

Atom has been previously mentioned, but I wanted to answer separately because Atom's status has changed somewhat. As of December 2023, atom was archived by the original developer. Since it was FOSS, of course it was forked. Forks include Atom-Community (https://github.com/atom-community; updated two years ago), Atom-ng (https://thorium.rocks/atom-ng/; updated last year), and Pulsar (https://pulsar-edit.dev/; updated last month).

mermaldad
  • 131