Sublime Forum

How to open a Sublime directory or switch to it if it is open from command line?

#1

The subl command will always open a new window for me whenever called even if running the command on the same directory.

What I wish is to open the directory with Sublime if it was not opened, and with the same command switch to the Sublime window of that directory if it is already open.

Thank you for any help.

0 Likes

#2

as was pointed out to you on IRC, you can try https://packagecontrol.io/packages/Prevent%20Duplicate%20Windows

0 Likes