In TextMate 2 I'd like to exclude the contents of a number of folders from my project-wide searches. I'm using the following in my project's ".tm_properties" file:
excludeDirectories = "{$excludeDirectories,log,vendor,tmp}"
However, it doesn't seem to be excluding files from those directories in my project-wide searches. What am I missing?
-Tyson
I encountered the same issue. I think "excludeDirectories" simply means "excludeFromFileBrowser". Perhaps it should be renamed as such, and "excludeDirectories" should have the semantics of "excludeFromFileBrowser" + "excludeInFileChooser" + "excludeInFolderSearch".
Anyway, I ended up specifying "excludeInFileChooser" and "excludeInFolderSearch" but leaving out "excludeDirectories". I like being able to hide a directory from the file chooser and folder search but show it in the file browser so I can browse through it when I need to.
Trevor
On Dec 15, 2011, at 6:11 PM, Tyson Tate wrote:
In TextMate 2 I'd like to exclude the contents of a number of folders from my project-wide searches. I'm using the following in my project's ".tm_properties" file:
excludeDirectories = "{$excludeDirectories,log,vendor,tmp}"
However, it doesn't seem to be excluding files from those directories in my project-wide searches. What am I missing?
-Tyson
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Ah, yeah. Looks like if you want to effectively ignore an entire directory completely, you'll need to repeat it three times:
excludeInFileChooser = "{$excludeInFileChooser,log,vendor,tmp}" excludeInBrowser = "{$excludeInBrowser,log,vendor,tmp}" excludeInFolderSearch = "{$excludeInFolderSearch,log,vendor,tmp}"
I'm still a bit confused about the differences between excludeDirectories, excludeInFileChooser, and excludeInBrowser. But I got the results I needed, so I'm satisfied. For now… :)
-Tyson
On Dec 15, 2011, at 8:26 PM, Trevor Harmon wrote:
I encountered the same issue. I think "excludeDirectories" simply means "excludeFromFileBrowser". Perhaps it should be renamed as such, and "excludeDirectories" should have the semantics of "excludeFromFileBrowser" + "excludeInFileChooser" + "excludeInFolderSearch".
Anyway, I ended up specifying "excludeInFileChooser" and "excludeInFolderSearch" but leaving out "excludeDirectories". I like being able to hide a directory from the file chooser and folder search but show it in the file browser so I can browse through it when I need to.
Trevor
On Dec 15, 2011, at 6:11 PM, Tyson Tate wrote:
In TextMate 2 I'd like to exclude the contents of a number of folders from my project-wide searches. I'm using the following in my project's ".tm_properties" file:
excludeDirectories = "{$excludeDirectories,log,vendor,tmp}"
However, it doesn't seem to be excluding files from those directories in my project-wide searches. What am I missing?
-Tyson
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate