Hi,
I'm not sure if I am missing something about the new ways to include/exclude files via entries in the .tm_properties file. I would like a subset of all my files to appear in the file browser. I first exclude all files then selectively include just those files I want. My problem is that when I do a search/replace in project the search returns matches in pure binary files (i.e. executables) that are *not* listed in my set of selected files. I never want to search/replace in any binary file. Can anyone suggest a fix?
Many thanks, Leo
Here is the section of my .tm_properties file
# exclude all files exclude = "*" excludeFiles = "*" excludeFilesInBrowser = "*" excludeDirectoriesInBrowser = ".*" excludeInFolderSearch = ".*"
# select some files mySourceCode = "*.adb,*.ads,*.adc,*.sh,*.tex,*.sty" myTextFiles = "*.txt,*.tex,*.sty,*.bib,*.inp" myBinaryFiles = "*.{jpg,jpeg,pdf,png}" myOtherFiles = "Makefile,README*,TO-DO*"
# make the selected files visible includeFilesInBrowser = "{.tm_properties,$mySourceCode,$myTextFiles,$myBinaryFiles,$myOtherFiles}"
[ $myBinaryFiles ] binary = true
On 21/04/2012, at 11.05, Leo Brewin wrote:
I'm not sure if I am missing something about the new ways to include/exclude files via entries in the .tm_properties file.
http://lists.macromates.com/textmate/2012-March/034716.html
I would like a subset of all my files to appear in the file browser. I first exclude all files then selectively include just those files […]
The exclude pattern should only be used for stuff you actually want to exclude.
I want. My problem is that when I do a search/replace in project the search returns matches in pure binary files
Which files to search is mainly guided by the glob in the Find dialog — you should probably edit that to *.{txt,text,…} or similar (it is kept per project folder).
[ $myBinaryFiles ] binary = true
This has been changed to a glob, so it should be:
binary = "${myBinaryFiles}"
Though I think you should leave this at its default value.