Efficient TextMate Project Panels
I ran into an issue with TextMate recently: the Find in Project function (command-shift-F) was taking over a minute to run and consuming huge amounts of memory in the process.
Before you scold me, know that I’m already using the time-honored tradition of excluding bloated directories like vendor/rails, log, doc, etc. using a bash alias.
This time, the culprit turned out to be my public/uploads folder which apparently included some documents that TextMate didn’t like to search.
Solution
Exclude the entire public directory from my alias and only include the javascripts and stylesheets directories. This has the added benefit of making my TextMate project panel easier to work with. After a little more thought, I decided I could do without the apps directory as well. The new look:

My TextMate Project Panel
The alias:
alias rtm=’mate app/controllers app/helpers app/models app/views config lib db public/javascripts public/stylesheets spec stories vendor/plugins &’
And, when I want to have access to the excluded directories:
alias rtma=’mate . &’
TextMate colored labels provided by the ProjectPlus plugin.