Skip to content
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

there should be a way to do ad hoc exclusions #147

Open
maw opened this issue Apr 3, 2024 · 0 comments
Open

there should be a way to do ad hoc exclusions #147

maw opened this issue Apr 3, 2024 · 0 comments

Comments

@maw
Copy link
Contributor

maw commented Apr 3, 2024

Using deadgrep, I often do a search for a very general string, am overwhelmed by the results, get upset.

In the old days, I'd do something like say git grep foo, see that there were too many results, say git grep foo | grep -v Test, see that there were still too many results, say git grep foo | grep -v Test | grep -v /lib, and so on until the result set was manageable.

I think it would be useful if there were a way to rapidly exclude some results (and then run (deadgrep-restart)).

I don't like using globs because I can never remember the syntax.


I think something like (define-key map (kbd "E") #'deadgrep-add-ad-hoc-exclude) where deadgrep-add-ad-hoc-exclude takes input from the minibuffer and adds it to a list of things to exclude (would this list need to be reconstructed behind the scenes as globs?) might be nice.

I'm less sure how to present this list, or how to deal with editing members of this list or removing them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant