dajva / rg.el

Emacs search tool based on ripgrep
https://rgel.readthedocs.io
GNU General Public License v3.0
471 stars 38 forks source link

Refine search #110

Open ghost opened 3 years ago

ghost commented 3 years ago

I wonder whether it is possible to refine the search, that is, run another regex search on the rg buffer using only files that resulted from the previous search?

dajva commented 3 years ago

No, not possible, I am afraid.

ghost commented 3 years ago

I suppose I could use rg-file-message to get the current file list (as you suggested in #109) and use that to run a new rg search on those files only.

ghost commented 3 years ago

I am just wondering wouldn't this be something people do quite often? This doesn't seem to be part of other grepping tools either in Emacs.

dajva commented 3 years ago

Maybe, I wouldn't know. Probably something I would not add the package unless there is high demand.