Open blueray453 opened 4 months ago
I think maybe it should be in ripgrep itself, or in other wrapper.
By the way, I would be happy to see a similar feature, but for me it would be more practical to filter those findings where both words are in the same line. It is also solvable with some regex magic but it would be handy to simplify this usecase. (I'm considering implementing this feature myself if I cannot find a ready solution.)
Is your feature request related to a problem? Please describe.
I want to find all files which have the words:
I mean all words have to be present in the file. They do not need to be in the same line, paragraph or page.
Describe the solution you'd like
When I use:
rga --word-regexp --sort path --ignore-case --files-with-matches --regexp "A1" --regexp "A2"
, i think the--regexp
work asor
. I need a operator that will work as and, something like--and "A1" --and "A2"
Describe alternatives you've considered
I am currently using:
However, this is not optimal.