From 0ba542043d3a2b46d19b03b6931d870043a2f1fc Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Mon, 22 Mar 2010 17:41:12 +1100 Subject: [PATCH] QA /technical/2009/05/exclude-directories-from-textmate-side-bar-for-faster-find-in-project/ --- ...s-from-textmate-side-bar-for-faster-find-in-project.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/technical/2009/05/exclude-directories-from-textmate-side-bar-for-faster-find-in-project.html b/content/technical/2009/05/exclude-directories-from-textmate-side-bar-for-faster-find-in-project.html index 759524b..5ba0c66 100644 --- a/content/technical/2009/05/exclude-directories-from-textmate-side-bar-for-faster-find-in-project.html +++ b/content/technical/2009/05/exclude-directories-from-textmate-side-bar-for-faster-find-in-project.html @@ -1,5 +1,7 @@ -I'm not much of a user of TextMate project files, generally preferring to just mate . in a directory. This works great until the directory or one under it contains large, irrelevant files like log files or database dumps. Its at this point you start encounter massive slow downs in the otherwise very useful 'Find in Project...' function. The slow downs turn into crashes if the files are big enough as this results in TextMate atttempting to grab vast amounts of memory. Eventually the OS tells it to, "bugger off, 1Gb is all I can give you", or something along those lines. +I'm not much of a user of TextMate project files, generally preferring to just `mate .` in a directory. This works great until the directory or one under it contains large, irrelevant files like log files or database dumps. Its at this point you start encounter massive slow downs in the otherwise very useful 'Find in Project...' function. The slow downs turn into crashes if the files are big enough as this results in TextMate attempting to grab vast amounts of memory. Eventually the OS tells it to, "bugger off, 1Gb is all I can give you", or something along those lines. A common solution, particularly when working on Rails projects is to create a shell alias that just invokes mate with the directories of interest. This works ok but given I'm working on a mix of project types (Pylons, Rails, Radiant) I wanted a solution that did the reverse: Choose everything except what I want to exclude. Informed by an answer to a question on Stack Overflow I came up with this: + -As the comments in the script note I have this in a file called 'ate' in ~/Local/bin, which is in my PATH. I can now happily go to any directory, type ate and have it ignore that list of directories. \ No newline at end of file + +As the comments in the script note I have this in a file called '`ate`' in `~/Local/bin`, which is in my `PATH`. I can now happily go to any directory, type ate and have it ignore that list of directories. \ No newline at end of file