Skip to content

Pimp my TextMate: how to speed up search & load

2009 June 18
by tobi

As a true Ruby on Rails developer you probably work with TextMate, as it’s a plain, simple, but yet quite powerful editor. I love its open-file-by-pattern (?+T) or find-in-project (?+?+F) functions. But one thing which bothered me the most was the search time when working on big, large, massive projects. One easy tweak how to speed it up easily is to extend the file and folder exclude patterns. For example you don’t need the tmp, log or vendor folder, nor any binary files within your editor. So I just excluded them, here are my new patterns (all in one line):

Files: (excluded all images,pdf & flash)

!(/\.(?!htaccess)[^/]*|\.(png|jpg|pdf|swf)|\.(tmproj|o|pyc)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$   

Folders: (exclude tmp tools vendor uploads lang locale po old_migrations script images upload custom_maps log)

!.*/(\.[^/]*|CVS|doc|tmp|tools|vendor|uploads|lang|locale|po|old_migrations|script|images
|upload|custom_maps|log|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$

To change the settings go to

preferences -> advanced -> folder references

Yeah, now my search is quite fast again!

flattr this!

One Response leave one →
  1. August 24, 2009

    Or you can use the ACK Textmate Bundle that will own the native Textmate search any time of day ;) http://github.com/protocool/ack-tmbundle/tree/master

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS