Home Download Buy Blog Forum Support

Opening files from command line confustion

Opening files from command line confustion

Postby sheamus on Wed Jun 06, 2012 6:36 pm

The problem seems to be with hot_exit and remember_open_files weirdness.

If they are both off, subl <filename> does not work, it just opens a blank file.
If one of them is on subl <filename> does work, but it also opens previous files I had open. Lion is already shoving this down my throat, I don't want ST2 to do it too.

Is there a way to have subl <filename> work while still having hot_exit and remember_open_files set to false?

Thanks.
~S
sheamus
 
Posts: 19
Joined: Wed May 30, 2012 12:48 am

Re: Opening files from command line confustion

Postby sheamus on Tue Jun 12, 2012 4:12 am

bump
sheamus
 
Posts: 19
Joined: Wed May 30, 2012 12:48 am

Re: Opening files from command line confustion

Postby phillip.koebbe on Tue Jun 12, 2012 12:49 pm

Just tested Build 2199 on OS X 10.7.4 by setting both hot_exit and remember_open_files to false and restarting to make sure they took. Then closed ST2 and went to the command line and did 'sublime <filename>' [1] and that individual file opened in ST2 just fine.

Which build of ST2 are you using? I seriously doubt this will matter, but is the file you are trying to open in the current directory or are you specifying a path to it?

[1] My symlink is 'sublime' because I have a wrapper script named 'subl' that I use. viewtopic.php?f=4&t=6703
-- Phillip

Code: Select all
while self.living? do
    mistake = Mistake.new
    self.learn_from!(mistake) unless mistake.fatal?
end
phillip.koebbe
 
Posts: 208
Joined: Tue Dec 20, 2011 4:58 pm

Re: Opening files from command line confustion

Postby sheamus on Wed Jun 13, 2012 6:46 am

Build 2181, and it works now. I wonder if non fully restarting was the issue? Well let that be the lesson here, make sure you do a cmd-q if you chagne those options.
sheamus
 
Posts: 19
Joined: Wed May 30, 2012 12:48 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 22 guests