I love idea of TextMate that any directory opened in it is already a project. But sometimes I it would be good to ignore files for certain dir and I don't like idea of creating project file in that dir or remembering how I named project file in some special folder like ~/.tmproject. Is there some sort of plugin or something like this which will allow me to ignore files in dir? Perfect solution would be reading .gitignore file.
If you're not dead-set against the idea of a
That said, you can ignore items in through TextMate's preferences: look under Advanced → Folder References. It's one long regular expression pattern separated by |pipes| so just add yours in there.
You can't get the TM ignore pattern from a
Another way around this would be to use the command line
For drag & drop convenience, throw an Applescript Automator wrapper around that and you're set.
|show 2 more comments|
Inspired by the previous answer, I have begun using the following command:
This will open a TextMate window which excludes anything that is in your .gitignore file. The -v option specifies a reverse match, and the -x option prevents partial matches ("bonk" doesn't match "bonkbonk")