exclude directory when using find in files
exclude directory when using find in files
I would like to search every file under my source tree but I use Subversion and so one of the directories that gets searched is .svn and I end up with a lot of false finds because of it. When doing a find in files it would be nice if you could exclude one or more directories from the search.
The Find in Files is just a wrapper dialog around the xfgrep.exe utility, the source code for which is found in the zExample folder.When doing a find in files it would be nice if you could exclude one or more directories from the search.
So unfortunately, without a major change to that code there is no easy way to have and option to exclude selective directories.
But as Subversion folders are usually hidden I have made a change to xfgrep.exe that should help.
Just download the new xfgrep.exe found here: http://www.zeusedit.com/z300/xfgrep.zip
This version will not search hidden files and folders by default, but it also has an option to turn on that search if required.
So if you just replace the versions you have from the ones in the zip file and make sure the Subversion repository folders are marked as hidden then the Find in Files output will not be pollute with any results from those folders .
Cheers Jussi