OpenInSublimeText icon indicating copy to clipboard operation
OpenInSublimeText copied to clipboard

Apple OS X Finder toolbar gadget to open selected file or folder in Sublime Text 2

OpenInSublimeText.app Notes

About OpenInSublimeText

OpenInSublimeText is a complete rip from Henrik Nyh's Open in Textmate <http://henrik.nyh.se/2007/10/open-in-textmate-from-leopard-finder>_ gadget:

Thanks to Henrik for putting that handy little gadget together!

I wanted the same functionality in the OS X Finder for Sublime Text 2 and lightly hacked Nyh's stuff to point at Sublime Text. Then, hacked a little icon together to make it all nice.

Installing the OpenInSublimeText gadget

Here's how I'd do it:

#. Make a scripts folder in your Applications folder #. Download a copy (or git clone) of OpenInSublimeText.app and drop it in that scripts folder. Example (from the Terminal)::

mkdir /Applications/scripts
cd /Applications/scripts
git clone https://github.com/itd/OpenInSublimeText.git OpenInSublimeText.app

#. Drop the OpenInSublimeText onto a Finder window toolbar.

Visually motivated? Watch a video at http://www.youtube.com/watch?v=1mkDYW2nsCc

Well, that's about it. You're ready to go!

If you have questions you can send me a note.

Credits

Original goodness by Henrik Nyh <http://henrik.nyh.se/2007/10/open-in-textmate-from-leopard-finder>_ Thanks, dude!

Mere hacks by Kurt Bendl <http://tool.net/>_ "Being dragged about on the coattails of giants."

Sublime Text 2 ++++++++++++++

If you are looking for a configurable text editor for OS X, give Sublime Text 2 <http://www.sublimetext.com/2>_ a go. It's totally awesome!