Faster project-wide searching in Textmate
(Updated: Sun, 16-Nov-2008)
Update: I'm now using Ack in Project, which is even better!
Textmate is a nice editor, but it's "Find in Project" (⇧⌘F) function is annoying slow in large projects.
So, I'm happy to have found an alternative: GrepInProject++, which leverages the raw power of find(1) and grep(1) for super fast searching. The original GrepInProject was created by Henrik Nyh; Robert Thurnher added a better UI and some other features.
Enjoy it thusly:
- Download and unpack GrepInProject.zip
- Install the UI support files as follows:
$ sudo mv GrepInProjectSearch.nib /Applications/TextMate.app/Contents/SharedSupport/Support/nibs/
- Open GrepInProject.tmCommand with Textmate
By default the "Grep in Project" command is bound to ⇧⌘F, replacing the built-in "Find in Project" command.
Note: my version is ever-so-slightly different to Robert's; I changed the find to use name rather than path matching (saving a few precious milliseconds), and removed a redundant "recursive" option from the grep.