Search by file path and file content
RyanzpLee opened this issue · comments
Is it possible to search for a word but also filter the results by their file path names to limit the results if there are many files in different directories containing that particular query?
I've tried to use the -g
argument to provide a glob pattern but it does not work.
Thanks!
What was the solution? @RyanzpLee
I have to add more examples to the README :D
You can basically use any argument that rg
or your grep command supports. If you start your query with the param it should work. But then you have to quote the query arguments properly. For example
foo -g bar
searches „foo -g bar“ string"foo" -g bar
searches the „foo“ string and passes „-g bar“ to the grep command