I got fed up with sublime opening the last project and a new window when closed and being launched. This super-simple plugin offers a single better_close_window command, which closes the project and then the window.

The plugin overrides the default close_window shortcut (that's ctrl+shift+w on Win/Linux and super+shift+w on OSX).

Before

Work on a foo.sublime-project . Close sublime. Start sublime opening a folder/project. subl ~/bar . Two sublime windows open - first with the foo project, second with ~/bar folder.

Now

Work on a foo.sublime-project . Close sublime via this plugin. Start sublime opening a folder/project. subl ~/bar . A single sublime window opens - with ~/bar folder.

Installation

The code is hosted on github. You can install it via Package control in sublime.