Home Download Buy Blog Forum Support

Exclude files & directories from "Find in Files"

Exclude files & directories from "Find in Files"

Postby seanch on Wed May 19, 2010 12:59 am

It would be useful to be able to exclude certain files and directories from the "Find in Files" search, such as Subversion's ".svn" directories.

I'm thinking something like "find.direxclude" and "find.exclude" options that would work like the "project.direxclude" and "project.exclude" options.
seanch
 
Posts: 7
Joined: Mon Nov 09, 2009 9:19 pm

Re: Exclude files & directories from "Find in Files"

Postby edanm on Wed May 19, 2010 8:19 am

+1

Sounds very useful.
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm

Re: Exclude files & directories from "Find in Files"

Postby jps on Thu May 20, 2010 1:00 pm

You can exclude files and directories by including them in the search pattern with a "-" prefix, for example:

Code: Select all
*.*;-*.css;-*CVS*


Will search all files, skipping over .css files and skipping anything with CVS in the path
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Exclude files & directories from "Find in Files"

Postby seanch on Thu May 20, 2010 4:04 pm

jps wrote:You can exclude files and directories by including them in the search pattern with a "-" prefix

Thanks for the tip. I still think being able to always have certain files/directories excluded would be useful, but this'll work.
seanch
 
Posts: 7
Joined: Mon Nov 09, 2009 9:19 pm

Re: Exclude files & directories from "Find in Files"

Postby Phrogz on Tue May 25, 2010 6:31 pm

jps wrote:You can exclude files and directories by including them in the search pattern with a "-" prefix, for example:


As a note to others, this doesn't work at the directory level. When I try searching in
Code: Select all
<project>;-C:\www\bugbot3\vendor\
it searches in the whole project and then tells me "Unable to open -C:\www\bugbot3\vendor\".

Instead, you have to put "*.*;-C:\www\bugbot3\vendor\*.*" in the third field, not second.
Phrogz
 
Posts: 18
Joined: Tue Mar 02, 2010 4:21 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 8 guests