Home Download Buy Blog Forum Support

Open document at given line number from command line

Open document at given line number from command line

Postby iota on Mon Dec 10, 2012 4:09 pm

I love sublime in Vintage mode, oh yes I do, but one of the few annoying things is I can't pass a line number to the "subl" executable from the command line.

In Vim, all I need to do is enter
Code: Select all
vim test.php +240
and I the file pops into Vim with the cursor at line 240.

Anyone know if this is possible in sublime at the moment?
iota
 
Posts: 8
Joined: Fri Nov 18, 2011 5:43 pm

Re: Open document at given line number from command line

Postby S0und on Mon Dec 10, 2012 4:23 pm

ctrl+p
test.php:240


also you can do this:

test.php@<function name>
S0und
 
Posts: 70
Joined: Wed Oct 28, 2009 4:12 pm

Re: Open document at given line number from command line

Postby iota on Wed Dec 12, 2012 3:58 pm

Incredible! Thanks so much for this!
iota
 
Posts: 8
Joined: Fri Nov 18, 2011 5:43 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 16 guests