Ack.tmbundle: a faster "Find in Project" for TextMate

Posted by trevor Tue, 03 Jun 2008 19:19:39 GMT

Recently one of my ENTP colleagues switched me on to ack as an excellent replacement for find+grep. Being a dyed in the wool TextMate user, the first thing that popped into my head was “I need an ‘Ack in Project’ TextMate plugin”.

Unfortunately the only advertised plugin I could find was 404’ing on me. Did I do the simple thing and notify the author about the dead link? Nope. I wrote my own plugin instead.

In hindsight I have to ask… what on earth was I thinking?

Whatever. I wrote the plugin and (if I do say so myself) it’s pretty damn good.

Here’s some installation instructions for getting it from my github repository:


cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/protocool/ack-tmbundle.git Ack.tmbundle

I’ve also thrown together a little (silent and slightly crappy) screencast showing it in action.

Enjoy.

Edit:

I’ve updated the wiki to include some information on getting ack to recognize new file types using Henrik’s haml comment as an example.

8 comments