Sublime Forum

Adding Folder to Active Window

#1

I commonly use the CLI to add a folder to the sidebar of my active window: subl -a [path/to/folder]

In Sublime Text 3, using subl -a [path/to/folder] would add that folder to the sidebar of my active window (or create a new window if there is no active window).

Ever since upgrading to Sublime Text 4, I noticed that the same command will now instead focus a non-active window if the folder happens to already be opened. This makes it really difficult to open two windows with the same folders (or even a folder A and a folder B which exists within A).

Is there any way to retain the previous behavior? Thanks!

0 Likes

#2

The -n or --new-window arguments to subl will tell it to create a new window; that may do what you want.

0 Likes