In summary: Search for file containing word, but the file should not be in child/grandchild of folder named "node_modules" or "yarn"
In detail: I am trying to search for the word "es6". But all of my */node_modules/* or */yarn/* folders have so many of these. I need to exclude all node_module folders, is this possible?
Negative dir path match
Re: Negative dir path match
Please try searching for:
es6 !\node_modules\ !\yarn\
! = NOT
es6 !\node_modules\ !\yarn\
! = NOT
Re: Negative dir path match
Thank you so much void!! Works awesome!!
Re: Negative dir path match
Follow up with similar question. Everything version 1.4.1.935 (x64)
I want to search in directory d:\docs, but exclude top-level subdirectory "eM Client". I tried this:
d:\docs\ !"eM Client"
This eliminates just 1 result of 48,405, though I don't know which; the eM Client subdirectory contains 870 files and 16 directories.
If I click Search - Match Path, then the eM Client subdirectory is removed from the results.
The following regex also works: d:\\docs\\((?!eM\sClient).)
So, why do I need to use Match Path for this to work?
Thanks.
I want to search in directory d:\docs, but exclude top-level subdirectory "eM Client". I tried this:
d:\docs\ !"eM Client"
This eliminates just 1 result of 48,405, though I don't know which; the eM Client subdirectory contains 870 files and 16 directories.
If I click Search - Match Path, then the eM Client subdirectory is removed from the results.
The following regex also works: d:\\docs\\((?!eM\sClient).)
So, why do I need to use Match Path for this to work?
Thanks.
Re: Negative dir path match
Please try searching for:
d:\docs\ !"d:\docs\eM Client\"
or simply:
d:\docs\ !"eM Client\"
Using a \ in your search term will temporarily enable full path matching for that term.
d:\docs\ !"d:\docs\eM Client\"
or simply:
d:\docs\ !"eM Client\"
Using a \ in your search term will temporarily enable full path matching for that term.