exclude directory when using find in files

Post any comments, suggestions, annoyances or ideas for future releases here. Please do not post bug reports or questions here.
Post Reply
kenbr1960
Posts: 3
Joined: Sun May 25, 2014 3:55 pm

exclude directory when using find in files

Post by kenbr1960 » Thu Jul 24, 2014 12:05 pm

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.

jussij
Site Admin
Posts: 2510
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Sat Jul 26, 2014 2:21 am

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.

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

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 2 guests