Jump to content
Muxe Inc Forums
Sign in to follow this  

How Can I Exclude A Directory From Find File?

Recommended Posts

dandv    0

I often search for text in all files of a project that's under version control. In this situation it's very helpful to exclude directories like .git, .svn, .cvs from the search.


Is there a way to do that? I tried searching for "*;-.git", "*;-.git/", "*;-.git\", "*;-.git/*" but in all cases, the ".git" directory was included in the search as well.


PS: the help for Find File does not mention '-' for excluding results (I don't actually remember how I even found out about that feature). It also offers conflicting information about '<': the Find File help states that '<' is used to start a regexp file mask, while the help for "File Masks" says that '<' means "numeric character (0-9)"

Share this post

Link to post
Share on other sites

Hi Dan,


include and exclude masks do only check the actual file name.

I have added this to my todo list (I should rename it to BOOK...).


Thanks for the hint on the wildcard options.


Stefan / AH

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this