-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support glob in --ignore or some way to specify relative directories for SEARCH_IN_DIRS #12
Comments
After reading the code that handles the ignores, relative paths should be supported, but only relative to the current location.
If it's only a directory/file, then it can be added without too much changes. Thank you for opening the issue! I'll try to look into solving it in the near future. |
yes, makes sense, no need for full glob support. i am more than happy if the current thanks for checking it. |
Should be good now! |
thanks, that was fast! is this available from cargo? i tried to install from it but it still downloads 2.4.0 |
Should be now |
it is working! this will dramatically improve my day to day usage, thank you! a last question, is there any way to know the paths the hunt traverses? my use case is that i want to understand which files/directories are being traversed so i can create a good ignore list. i was thinking the verbose option does this but it just shows when errors are found. |
If you run |
awesome, thanks for the tip! and thanks again for quick implementation of the |
hi! thanks for such amazing cli, it is really fast and i am using it everyday!
as part of my normal usage, i usually work in node.js based projects, and execute file searches in these projects. i would like to speed the search even more by ignoring certain folders like
node_modules
, or.git
.i was trying to use
hunt --hidden --ignore node_modules foo.js <path-to-my-project>
but this does not work, I've realized that the expected format for other--ignore
option is to pass a list of full paths. (FYI i use --hidden because i usually search for configuration files that start with doti think supporting relative paths for
--ignore
would be a nice addition, and i would be still easy to use. the way i think it should work like this:this will skip the search for paths like
<path-to-my-project>/node_modules
, or<path-to-my-project>/src/directory/node_modules
, so basically any path inside<path-to-my-project>
that contains the directorynode_modules
will be skipped. it would be amazing that this also works for all directories passed toSEARCH_IN_DIRS
The text was updated successfully, but these errors were encountered: