+10
Tim Haines 6 years ago • updated by Vojta Jína 5 years ago 3
Opening a folder from the command line should focus on the existing window if that folder is already open in Sublime.
I have posted a similar request for opening files from the cli when said file is already open in a Sublime window.  See:


That issue contains a workaround script for Linux that will re-focus the Window (via wmctrl) rather than calling Sublime if the window is already open.  Said script does not attempt to solve the folder-view focus issue reported here; it would be possible to attempt such a workaround, although it is not possible to distinguish between multiple different folders (in different locations) with the same name by this method.
The same should happen when opening a project:
subl --project x

If project x is already open, it should just activate this window.