Sublime Forum

[Explained] «--wait» and «--stay» arguments for «subl» command

#1

Somebody works with options -w and -s with Command Line Usage? I use Git, but I can’t understand how these options function. Please, somebody could set a working example of application of these arguments? I couldn’t find working examples in the Internet. Thanks.

0 Likes

#2

https://help.github.com/articles/associating-text-editors-with-git/


example running it manually from CMD:

"%PROGRAMFILES%\Sublime Text 3"\subl -n -w -s "C:\tmp\scratchpad.py"

-n opens a new window
without -s, when you close the file in ST, CMD gets the focus again. with -s, when you close the file in ST, ST keeps the focus.
-w the CMD prompt can’t be used again until the file is closed in ST

1 Like

#3

Now I understand. Thank you very much!

0 Likes