Home Download Buy Blog Forum Support

Commmand Line parameter to jump to line # [solved]

Commmand Line parameter to jump to line # [solved]

Postby frame on Thu Nov 21, 2013 12:01 pm

I'm looking for the command-line parameter to load a file and jump to the specified line number.

Code: Select all
Example: sublime_text.exe X:\test.txt#123


I've tried a few guesses, but no luck. Maybe I'm missing something or it doesn't exist.

In case the community knows, Is this a feature that could get added via a plugin?
Last edited by frame on Sat Nov 23, 2013 12:17 am, edited 1 time in total.
frame
 
Posts: 2
Joined: Fri Sep 07, 2012 12:21 am

Re: Commmand Line parameter to jump to line #

Postby imocoder on Fri Nov 22, 2013 7:54 am

This way works on Linux:
Code: Select all
./sublime_text /file_path/file_name:line_number:
imocoder
 
Posts: 6
Joined: Fri Oct 11, 2013 12:03 pm

Re: Commmand Line parameter to jump to line #

Postby frame on Sat Nov 23, 2013 12:16 am

Excellent! Thank you!

Yes, it's indeed two colons.

Code: Select all
sublime_text.exe X:\test.txt:123:
frame
 
Posts: 2
Joined: Fri Sep 07, 2012 12:21 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 18 guests