konradsz / igrep

Interactive Grep
MIT License
641 stars 17 forks source link

Support multiple PATH arguments #42

Closed rlue closed 1 year ago

rlue commented 1 year ago

Hi, very cool project. Are there any plans to support multiple PATH arguments in the future? I.e., the following command line fails:

$ ig query . /tmp
error: Found argument '/tmp' which wasn't expected, or isn't valid in this context

where passing the same arguments to rg searches for instances of "query" in both the current directory and /tmp. POSIX grep also does this, as long as you pass it the -r flag.

konradsz commented 1 year ago

Hi, I added support for multiple path search, it wasn't there from the beginning simply because I never used grep/ripgrep this way. Happy searching! ;)