Closing a window (either with Shift+Ctrl+W or with the window manager close button) usually entails the following process:
- Ask for confirmation (Save changes to X before closing?) for any unsaved tabs.
- If Cancel is pressed in any of the confirmation dialogs, abort the window close operation.
- Otherwise, close the window for good.
But if you perform Close window on the last (or only) application window, the behavior becomes that of File / Quit, or Ctrl+Q, at least on Linux:
- Quit the application, saving all the open files and windows for next time.
This is a bug, because it renders subl
(and other methods of launching ST) dependent on whether there are other windows currently open in other workspaces: if there are other windows open somewhere else, subl -n
will open a new blank window; otherwise, it will also open the last window you worked on.
I believe the Close Window and Quit Program should be separate commands.
Is there a plugin that makes it possible to invoke the Close Window function even when there are no other windows visible? I tried https://github.com/mreq/sublime-better-close-window but it does not seem to be working.