-
Notifications
You must be signed in to change notification settings - Fork 47
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
Combination of -g and --type #75
Comments
Would #93 solve this problem? |
@gvol I guess you are asking if a custom ripgrep type defined via |
Well,
and then if you choose the type of "python" it would use all python files, but if you chose "python-not-tests" it would choose only python files that aren't tests. |
Then it would definitely solve my problem. Thx for bringing #93 up here! |
I would like to only grep in files with a given type and a given glob. To grep in all python files that are not unit-tests I locally run
rg serachstring -tpy -g "!tests"
. However, it is not possible to do this usingdeadgrep
, because the file-type indeadgrep
can either beall
,glob
ortype
, but not a combination of those.My current workaround is to override
deadgrep--arguments
, where I add(push "-globs=!tests" args)
.The text was updated successfully, but these errors were encountered: