Ignoring Files and Folders in Textmate Projects
If you’re working on a large project with other folks, you may sometimes have a need to ignore large sections of the project. For instance, you may be working on a large web application, and you may only care about 5% of the project, possibly just the jsp, css and javascript.
Including the entire file tree in Textmate is a pain, as Go to File and Find in Project become cumbersome and inefficient. Further, I’ve found Textmate to be slow if the project is overly large.
Use separate Textmate projects for each folder you care about…
This is rather crude, and it’ll force you to switch between different Textmate windows. It’s rather limiting.
Remove Selected Files...
You could select folders and files in the project and choose to Remove Selected Files.... You are given the choice to delete the files, or remove the references. This is easy, but if files appear dynamically, you might run some build script, then the files will appear each time and you’ll have to repeat the process. This gets rather annoying.
Use Folder Information Dialog
A more powerful feature, but quite hidden, is to use the Folder Information dialog, you can choose to hide folders or files based on a regular expression. To access the dialog, choose the top-most folder in your project and then control-click and click Show Information.... Add folder names as necessary to hide folders and their children. This can be rather tedious in a large project, but if you’ll be working in the project long-term it’s worth it.
The bugger with this method is that it first requires you to load the entire source tree in Textmate, which can take a long time. Here is a workaround.
To hide a folder, add it to the pipe-separated list.
* * *