Sublime Forum

Opening files from command line confustion

#1

The problem seems to be with hot_exit and remember_open_files weirdness.

If they are both off, subl does not work, it just opens a blank file.
If one of them is on subl 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 work while still having hot_exit and remember_open_files set to false?

Thanks.
~S

0 Likes

#2

bump

0 Likes

#3

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 ’ [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. Command line opening should use project

0 Likes

#4

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.

0 Likes