Faster search in Textmate

At Montreal On Rails #7 one presenter had to use Marc-AndrĂ©’s computer to do his presentation and was surprised by the fact Textmate wasn’t showing the vendor/ folder.

If you freeze all your gems in vendor/ as we do, search becomes so slow as to be unusable. Here’s the pattern to use to avoid the vendor folder:

!.*/(\.[^/]*|CVS|vendor|log|_darcs|_MTN|\{arch\}|blib|.*~\.nib|
.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$

Plug that in Preferences-> Advanced -> Folder References -> Folder Pattern

The downside is that if you want to search for a file in vendor you have to open a new instance of textmate

2 comments ↓

#1 Carl Mercier on 02.25.08 at 12:56 pm

I’m totally trying that ;-)

#2 Jean-Francois Couture on 02.25.08 at 3:32 pm

It also makes it easier to find the file you’re looking for when using cmd-t .

Leave a Comment