TextMate bundle: Ack in Project (improved)

I use TextMate for work. It’s a good editor, doesn’t get in my way, and I take advantage of relatively few of its nifty features.

One problem with TextMate is that its built-in search is very slow, especially across a large project. Since I work with a full checkout of the deviantART source code, searches can take a while.

So I started using Ack in Project, a TextMate bundle that uses ack to search your project. (Ack is a nifty little tool that combines grep and find, along with a number of useful optimizations for searching checked-out source code.)

However, Ack in Project doesn’t expose a very useful part of ack’s functionality, which is the ability to search just particular filetypes. This has occasionally been a pain — some words appear commonly in PHP and JS files, but I only care about them in the PHP.

So I spent a little while this evening adjusting Ack in Project to let you choose a file type to search.

My Ack in Project tweak

My version is up on github.

If you’d like to use it, do this:

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

(It was my first time messing with tm_dialog, so I’m not necessarily confident about how I did it. But it works!)

Comment (1)

  1. mybeami wrote::

    by the way I’m sorry, english is just not my main language. I just observed some form of odd code everywhere in the web-site, just in case it’s actually crucial I merely considered I would inform you about. similar to Error: Impossible modify footer tag … and so forth. This is most probably me though, simply I still have never free time to update and so i am always employing firefox 3.0.14 but my own web page cheap flights to newark and the standard sort like by way of example msn cause me absolutely no issues, so it is a bit odd.

    Wednesday, March 10, 2010 at 1:22 pm #

Trackback/Pingback (1)

  1. mindtangle » Blog Archive » Weekly Digest for February 18th on Thursday, February 18, 2010 at 1:02 am

    [...] TextMate bundle: Ack in Project (improved) < David Lynch. Way better search in Textmate. I checked out a few forks of this bundle, and this one works [...]