Wednesday, June 20, 2007

Remove "Find In Project" From TextMate

I love TextMate, but "Find In Project" drives me nuts. It's always crashing my box. I e-mailed TextMate's creator asking if he could just remove the feature from the next release. The response I got was incredibly cool. Instead of giving me the virtual finger, he told me you can do it like this:

sudo open /Applications/TextMate.app/Contents/Resources/English.lproj/MainMenu.nib

This command opens TextMate's UI in Interface Builder, which allows you to remove it from the menu. Removing it from the menu clobbers the key-command shortcut too, so it effectively removes the feature from your install completely.

5 comments:

Are you excluding folders when you open up projects? Personally, I don't like dealing with project files, I use the mate command to open directories of files up. For rails projects, I use something like this: "mate app config db lib public script spec test", which I alias to 'mr'. This leaves out the log and vendor directories which tend to have a lot of content that doesn't usually need to be searched.

Yeah, I don't do project files either, I just use mate also. I have found "Find In Project" pretty fast inside ActiveRecord, I have a mate alias for that, and of course the reason is it's a small file - likewise excluding log can speed up the searches considerably - but all you have to do is have a 32MB SQL dump in there that you forgot about and the whole approach is doomed. grep's faster and more fully-featured, just not as pretty, so this time around I had to go back to my Unix roots.