Sublime Forum

Open folder from command line: bring existing to front

#1

In macOS and Sublime 3 if I open a folder from the Terminal it always opens it in a new window, even if I already have a window open on that same folder.

What I would prefer (and what other editors I own do, such as VSCode and BBEdit) is to bring the relevant window to the front if one exists. This reduces duplication and keeps the # of open windows sane.

Is there someway to make Sublime Text behave as I want? Note that this is not controlled by the “open_files_in_new_window” setting. (No surprise, because these are folders, not files).

In case I am not being clear, try the following experiment: in Terminal navigate to a folder of files. Now type:
subl .
subl .
What I see is that two windows open (both with all the files in the current folder).
What I would like to see is just one window open.

0 Likes