Home Download Buy Blog Forum Support

Way to add a keyboard shortcut for "Reveal in Finder".

Way to add a keyboard shortcut for "Reveal in Finder".

Postby Woodwater on Fri May 27, 2011 7:39 pm

Hi Guys,

You've already answered one question for me today so I figured I'd try my luck.

I've tried a few ways to bind "Reveal in Finder" to a keyboard key in Sublime 2 for Mac, no luck.

Could anyone point me in the right direction? I've tried the obvious places. System Pref and Keyboard Shortcuts file...

Thanks in advance!

David.
Woodwater
 
Posts: 22
Joined: Fri May 27, 2011 2:22 pm

Re: Way to add a keyboard shortcut for "Reveal in Finder".

Postby guillermooo on Fri May 27, 2011 8:00 pm

I don't know what "Reveal in Finder" is, but you might try this:

http://sublimetext.info/docs/customizat ... dings.html
guillermooo
 
Posts: 718
Joined: Thu Jul 23, 2009 9:06 am

Re: Way to add a keyboard shortcut for "Reveal in Finder".

Postby Woodwater on Sun May 29, 2011 3:18 pm

I tried that. No luck. Thanks though! Appreciated. :)
Woodwater
 
Posts: 22
Joined: Fri May 27, 2011 2:22 pm

Re: Way to add a keyboard shortcut for "Reveal in Finder".

Postby Marciano on Mon May 30, 2011 4:00 pm

Actually, the functionality is sort of already there. If you have a file open in a tab and you secondary-click on the ST2 window's title bar, you get the standard Cocoa drop-down menu listing the file, the folder it's in, the folder that encloses it, all the way to your HD. Click on the folder containing the file, and that folder is displayed in a finder window; the current file is highlighted.
Marciano
 
Posts: 143
Joined: Fri Sep 18, 2009 2:55 am

Re: Way to add a keyboard shortcut for "Reveal in Finder".

Postby Woodwater on Wed Jun 01, 2011 5:40 pm

I know. I just want to access it through a Keyboard shortcut. I'll ultimately use Afloat if I can't do it within Sublime 2.

Thanks.
Woodwater
 
Posts: 22
Joined: Fri May 27, 2011 2:22 pm

Re: Way to add a keyboard shortcut for "Reveal in Finder".

Postby jps on Thu Jun 02, 2011 12:44 am

If you look in Default/Context.sublime-menu, you'll be able to see all the commands used for the context menu entries. The one for "Reveal in Finder"/"Open Containing Folder" is:

Code: Select all
{ "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"}  }
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Way to add a keyboard shortcut for "Reveal in Finder".

Postby Woodwater on Mon Jun 13, 2011 1:25 pm

Sweet! It works.

Code: Select all
{ "keys": ["ctrl+shift+super+f"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} }


Thanks a bunch. :)
Woodwater
 
Posts: 22
Joined: Fri May 27, 2011 2:22 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 15 guests

cron