phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
8.21k stars 177 forks source link

Freature request: grep options -l / --files-with-matches (list only file names and not the matches themselves) #91

Closed peey closed 3 years ago

peey commented 3 years ago

Use Case: I'm trying to shortlist a lot of files from a directory with a lot of files (e.g. the downloads directory).

It'll be more useful if I can get a list of matched files as output instead, so I could then further chain more filters on that list of files (e.g. ranking them by date and so on)

peey commented 3 years ago

My bad, this already works, I just didn't find it in the --help page listed explicitly so I thought it wouldn't