Quicksilver trigger: open with Textmate

September 20, 2007

Just made my best trigger yet! For those not in the know, quicksilver can be used to create custom short-cuts that do something when you press a certain key combination.

I had already made a open Gmail trigger, so I can open Gmail just as simple as command+option+g. This ones pretty nice, but the one I did today combines my favorite Mac app (Quicksilver) with my favorite Mac editor (Textmate).

One nice feature of Textmate is its ability to open folders and display their contents on a side drawer. The part that always bothered me was getting to the right folder while in Textmate. I usually had it opened in the Finder, but then would have to re-navigate to it when I wanted to edit files in the folder.

But No More!

For this trigger I turned on the proxy objects in the Quicksilver section of the Catalog.

proxy-on.png

This Gives you access to the ‘Current Selection’ proxy object, which represents what you have highlighted at any given time. Folders, files, whatever. It’s a very useful proxy.

Now we are able to create a trigger that opens the Current Selection (i.e. a folder) in Textmate.

Quicksilver textmate trigger

Assign this to your keychord of choice (I picked command+option+m but I don’t know if thats a good one) and you’re ready to use Textmate, via Quicksilver, all the more efficiently.

Update:

I found a problem with the key combination I choose, namely option+command+m is used to highlight text in the best pdf viewer / editor : Skim. So, what to do? I don’t like having three modifier keys as part of the key combination, so I didn’t really want to move to control+option+command+m.

So I took advantage of another Quicksilver feature that lets you limit where your triggers are used. If you open the information pane for your trigger, and select the ‘Scope’ tab, you can set limits or exceptions to the validity of your trigger.

scope.png

I could have also just disabled it in Skim, but so far I can’t think of another place this would be useful except in the Finder…

Btw: You just type the name of the program you want to limit the scope to – so type it right.