grepWin icon indicating copy to clipboard operation
grepWin copied to clipboard

Exclude Dir Regex / Include Dirs Filter

Open github-u-s-e-r opened this issue 7 years ago • 1 comments

The "Exclude Dirs" filter is invaluable but I also find myself wanting to to the opposite:

Search only folders of  a certain name within a directory tree.

I should be able to use Exclude dirs with a regex for this but I failed to do so. Wanting to only see matches in paths that contain "foo" I used: ^((?!foo).)*$ or ^((?!.foo).)$ Both regex work in the "Test regex" feature for regular text matching but not for Exclude dirs. Maybe I got the syntax wrong?

Failing that I would like a negate checkbox for Exclude Dirs which turns Exclude filter into an Include filter ;-)

github-u-s-e-r avatar Oct 25 '18 07:10 github-u-s-e-r

A check box to to be able to be able to switch the "Exclude" behavior to "Include" behavior would be (I think) one of the easiest ways to do this.

Protuhj avatar Jul 30 '21 18:07 Protuhj