I’m interested in the technicalities behind consult-grep and ripgrep. As outlined in How to filter search results with Vertico, everything before the second # (or what you choose) is given as query to grep/ripgrep.
Now let’s say we have a file with the following content:
one two three
and my search prompt is now #three one#two. This prompt matches the file. How is grep/ripgrep invoked here?
As I understand, grep/ripgrep have no option to search for something like grep --and three --and two, the only option with them is to pipe results. So grep three | grep two. Is this what is done?