Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is this possible? I often happen to have opened more than one document and after editing one I click on close without remembering that I actually just wanted to close that tab.

share|improve this question
That is what the little gray x is for :) Re-program yourself! – ubiquibacon Aug 4 '10 at 11:05

If you know C++ then it is possible to get hold of the source on and it's probably not that hard to get it to do what you want. Otherwise I don't think its realistically possible.

But in the preferences editor there are various options that could make a sort of workaround. In the Global tab set Enable close button on each tab to true. This puts a little 'x' on each tab. In the MISC tab make sure that the Remember the current session for next launch is checked. This means that if you accidentally close the whole program then at least you won't have to open each file again.

Personally I prefer to close tabs using the middle mouse button. It is also possible to use the shortcut mapper to make CTRL-F4 close the tab which is the shortcut most other programs use.

share|improve this answer
I agree with the middle mouse click - most web browsers support the same command (close tab with middle click), so it's a convention I'm used to. – Michael Aug 4 '10 at 12:26
+1 for "Personally I prefer to close tabs using the middle mouse button. It is also possible to use the shortcut mapper to make CTRL-F4 close the tab which is the shortcut most other programs use." – Dwayne Samuels Aug 4 '10 at 15:24
thanks. I am aware of these options, but there's still a ALT+F4 reflex when I open a separate file while having tabs open... – Tobias Kienzler Aug 5 '10 at 10:11

Can't find anything to make it behave as you wish but I can add to the list of ways to close them.. In my day to day work I often end up having more than 20 - 30 tabs open at any time.

CTRL-W is how I like to close them since I always have my hands on the keyboard and mousing around is slower.

Somewhat unrelated but if you work with a lot of tabs and want to save yourself some time clicking around looking for tabs, you can also get the File Switcher plugin. Once installed, I believe the shortcut is CTRL-SHIFT-o. Once that's up, you can start typing the name of the file, or the path (if you enable search within path in the options) and it'll highlight that file, then hit enter and it'll switch to it. Seems like a lot of work but takes 3 keys to launch then 1 to 10 keys to switch documents. When I have 40 files open this saves a LOT of time instead of clicking through and trying to remember where they were in the tab bar.

share|improve this answer

Maybe consider using a different editor. I use Geany; If you close the entire program rather than just a single tab, all tabs will be remembered the next time you open it. Other than that, it is very similar to notepad++.

share|improve this answer
that behaviour is exactly the same as in notepad, but one can turn it off – Tobias Kienzler Aug 5 '10 at 10:03
it looks nice however, I'll give it a shot. Especially the multi-platform aspect is good since I also use Linux – Tobias Kienzler Aug 5 '10 at 10:19
up vote 0 down vote accepted

Using the parameters -multiInst -nosession will allow multiple windows to be created, which can still contain several tabs (however, they have to be opened through that window for obvious reasons). That way, closing one window will leave the remaining documents open.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .