rg.el icon indicating copy to clipboard operation
rg.el copied to clipboard

Refine search

Open ghost opened this issue 4 years ago • 4 comments

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?

ghost avatar Dec 20 '20 15:12 ghost

No, not possible, I am afraid.

dajva avatar Dec 26 '20 10:12 dajva

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 avatar Jan 03 '21 09:01 ghost

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.

ghost avatar Jan 03 '21 09:01 ghost

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

dajva avatar Jan 13 '21 15:01 dajva