Pimp my TextMate: how to speed up search & load
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)
[text]
!(/.(?!htaccess)[^/]*|.(png|jpg|pdf|swf)|.(tmproj|o|pyc)|/Icon\r|/svn-commit(.[2-9])?.tmp)$
[/text]
Folders: (exclude tmp tools vendor uploads lang locale po old_migrations script images upload custom_maps log)
[text]
!.*/(.[^/]*|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))$
[/text]
To change the settings go to
[text]
preferences -> advanced -> folder references
[/text]
Yeah, now my search is quite fast again!