Sublime Forum

How does the --command argument work?

#1

I’m trying to open sublime text and select a line.
I’m able to go to the desired line by using “sublime_text.exe filename.txt:linenumber” where linenumber is a number.

Looking at
sublimetext.com/docs/2/osx_ … _line.html
sublimetext.info/docs/en/core/commands.html

It seems that you can also pass commands from the commandline (atleast on mac I assume?) But I can’t get the --command argument to work.
I want to open sublime text, go to the specified line and then select that line.

Any ideas?

0 Likes