Home Download Buy Blog Forum Support

open project from command-line?

open project from command-line?

Postby williams on Tue Nov 24, 2009 4:45 pm

I can't find any documentation on command-line options for sublimetext.exe. It would be good to add this to the wiki.

I am trying to create a batch file to open sublimetext and open a specific project specified at the command-line. Can anyone help me out?

Thanks,
Greg Williams
-- Greg Williams
SW/FW Developer
Atomic Object
http://atomicobject.com
williams
 
Posts: 2
Joined: Sun Oct 25, 2009 2:07 pm
Location: Grand Rapids, MI, USA

Re: open project from command-line?

Postby jps on Tue Nov 24, 2009 9:12 pm

Command line options are documented at http://www.sublimetext.com/docs/command-line, which is accessible via the support page.

It's not presently possible to open a project via the command line, and although this could be worked around with a plugin, it would be fairly involved.

I'll add it to the todo list.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: open project from command-line?

Postby williams on Tue Nov 24, 2009 9:27 pm

Yeah, this would be a very handy feature. One other thing that would be good to add as part of this option, or rather in general, would be to switch to the current working directory to the root of the project when opening a project file, since opening a project does not affect the wd currently.

Thanks JPS!
williams
 
Posts: 2
Joined: Sun Oct 25, 2009 2:07 pm
Location: Grand Rapids, MI, USA

Re: open project from command-line?

Postby myel on Wed Nov 25, 2009 8:24 am

i'd like to add this viewtopic.php?f=4&t=842 :)
myel
 
Posts: 88
Joined: Sat Mar 22, 2008 11:26 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 21 guests