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
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this