Sublime Forum

Open files and folders in existing window if possible

#1

Steps to reproduce:

subl .
... A bunch of other commands
subl .

Should only open one window, the second subl . should switch to the window created in the first, since this folder is already in an existing project.

Bonus:
subl ./afile.txt
subl ./afolder
Should also switch to the first window, since these files are in a folder already opened in an existing window.

Basically I would like sublime text to open the least possible amount of windows when launched multiple times from the terminal.
I know that the -a option exists, but I like to keep only one top-level folder per window.

0 Likes