Closed mattbasta closed 9 years ago
FYI, this bug is closed. Posting here doesn't help fix your issue, and emails a bunch of people who can't help. For best results, please open a new bug. Thanks!
In order to search in a folder within my project folder and ignore the .git
folder within it, I did the following
Just added , !.git
after my folder path.
this works for me: !**/node_modules/**,!**/bower_components/**
Thanks, this worked for me. Was giving up on this! */.html was what I needed.
Nice! This works for me as well: !*.min.js
This works for me
!node_modules
Not working at all for me ): The "Exclude VCS Ignored Paths" option also not working.
@jorgeorpinel could it be that your file was not saved at that time? If so, see #647
Just ran into this issue myself. I wanted to find all instances of a keyword within a directory, but wanted to exclude the search from a single nested directory within.
Demo File Structure:
project-name/
search-this-directory/
...
...
...
exclude-this-directory/
...
...
...
File/Directory Search Pattern - FAILS
project-name/search-this-directory, !project-name/search-this-directory/exclude-this-directory,
After several attempts, I found that each additional file/directory pattern built on the previous... Therefore, in order to ignore the nested directory, we simply ignore that one single directory after defining the search context.
File/Directory Search Pattern - WORKS
project-name/search-this-directory, !exclude-this-directory,
When searching, filters can be specified. However, there's no way to exclude paths from the search.
E.g.:
*.js, -*.min.js
cannot be used to exclude minified files from a search of JS