Home Download Buy Blog Forum Support

Open file in same directory?

Open file in same directory?

Postby rspeer on Tue Feb 01, 2011 8:52 pm

I'm trying out Sublime as a gvim replacement, and I'm wondering if it has a way to open a file from the same directory using the keyboard.

In gvim, I would type :tabe <filename> and get a new tab with that file open (and the filename can be tab-completed). The closest thing in Sublime seems to be its standard Open dialog, but this dialog (in OS X) is difficult to use without taking my hands off the keyboard, and it seems to have the standard OS X feature of starting in some other directory that's totally unrelated to what I'm working on.

I recognize that some of the project-related features might accomplish something like this, but having to set up projects for every directory I might edit in is a chore.
rspeer
 
Posts: 7
Joined: Tue Feb 01, 2011 8:43 pm

Re: Open file in same directory?

Postby JamesM on Wed Feb 02, 2011 12:19 pm

This is the same question as I asked a couple of days ago.

+1 from me, hopefully you'll get an answer!
JamesM
 
Posts: 4
Joined: Mon Jan 31, 2011 10:06 am

Re: Open file in same directory?

Postby jps on Wed Feb 02, 2011 12:49 pm

There is in 1.x, but not yet in 2.

Once the quick panel API is in, it'll be possible to write a plugin for this.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Open file in same directory?

Postby JamesM on Wed Feb 09, 2011 10:23 pm

Excellent.

Well I'll hold back on purchasing the licence until that functionality is in - I'm loath to spend a large amount on a licence if I can't adapt it to my workflow.

It does seem an excellent editor though. Does it support unicode and locales natively?
JamesM
 
Posts: 4
Joined: Mon Jan 31, 2011 10:06 am

Re: Open file in same directory?

Postby rspeer on Wed Feb 16, 2011 9:30 pm

I appreciate the fact that Open and Save now follow the directory of the currently-active file. This makes it possible to use Command-O as a replacement for vim's :tabe, once I get over my aversion to file dialogs caused by the many programs that don't follow this convention.

Still looking forward to the Quick Panel, which sounds like it will be a smoother interface.
rspeer
 
Posts: 7
Joined: Tue Feb 01, 2011 8:43 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 69 guests