Home Download Buy Blog Forum Support

Command line vs untitled

Command line vs untitled

Postby optilude on Tue Aug 09, 2011 7:37 pm

Hi,

If there's no active ST window, if I run "subl ." on the command line (to open the current directory as an ST project), it also creates an empty "untitled" file. This is fairly annoying, and virtually never what I want (I want to start working on the files in the directory, not create new ones).

Is there a way to turn off this behaviour?

Martin
optilude
 
Posts: 30
Joined: Sun Jan 30, 2011 2:36 pm

Re: Command line vs untitled

Postby kasima on Tue Nov 01, 2011 5:58 pm

+1. Ecstatically, +1.
kasima
 
Posts: 2
Joined: Wed Oct 26, 2011 8:23 pm

Re: Command line vs untitled

Postby freewizard on Wed Nov 02, 2011 5:48 am

agree. this is confusing and uncommon at least for a new user from other editors.
using Sublime Text 3 dev in OS X 10.8
my ST packages: https://github.com/freewizard
freewizard
 
Posts: 36
Joined: Wed Feb 09, 2011 4:14 am

Re: Command line vs untitled

Postby andyjeffries on Wed Nov 02, 2011 2:40 pm

The same thing happens here (on Build 2139/Mac OS X Lion).

I have open_files_in_new_window set to false.

And +1 to a way to turn this off, I agree. I often run multiple subl commands to open up windows with a few libraries and my project (I prefer to keep them separate) so I end up with multiple Untitled windows to go with them.
andyjeffries
 
Posts: 30
Joined: Tue Sep 27, 2011 9:36 am

Re: Command line vs untitled

Postby slestak989 on Wed Nov 02, 2011 3:06 pm

I am not sure why the . is required on the command line. Is that a typical way to open the cwd in the editor?
Using ST2 on: Win7 Pro 64 || Win7 32|| Fedora 16
slestak989
 
Posts: 31
Joined: Tue Oct 04, 2011 3:40 am

Re: Command line vs untitled

Postby jps on Wed Nov 02, 2011 11:35 pm

"subl ." no longer creates an untitled tab in 2139
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Command line vs untitled

Postby andyjeffries on Thu Nov 03, 2011 8:25 am

jps wrote:"subl ." no longer creates an untitled tab in 2139


As per my post above, it does for me on 2139 on Lion.

Happy to record a screencast or send you any debug logs (if they are created by Sublime Text 2) if you want ;-)
andyjeffries
 
Posts: 30
Joined: Tue Sep 27, 2011 9:36 am

Re: Command line vs untitled

Postby andyjeffries on Sun Nov 06, 2011 7:42 pm

*BUMP*
andyjeffries
 
Posts: 30
Joined: Tue Sep 27, 2011 9:36 am

Re: Command line vs untitled

Postby andyao on Tue Nov 08, 2011 5:36 am

andyjeffries wrote:
jps wrote:"subl ." no longer creates an untitled tab in 2139


As per my post above, it does for me on 2139 on Lion.

Happy to record a screencast or send you any debug logs (if they are created by Sublime Text 2) if you want ;-)


+1

"subl ." always creates an untitled windows on Lion 10.7.2
andyao
 
Posts: 2
Joined: Mon Nov 07, 2011 6:32 am

Re: Command line vs untitled

Postby GMFlash on Fri Nov 11, 2011 12:10 am

This also happens to me in build 2141 on OS X 10.7.2
GMFlash
 
Posts: 10
Joined: Tue Aug 30, 2011 2:55 pm


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests