grepWin
grepWin copied to clipboard
Exclude Dir Regex / Include Dirs Filter
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 ;-)
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.