How can we customize Emacs' rgrep to use ripgrep (rg executable) -- making it working for searching in Latin 1, UTF-8 and UTF-16 at the same time?
The idea is to reuse the standard rgrep command of Emacs, so that we can use next-error and previous-error as well...
I don't see how to fully integrate the (for the base dir) and the (for the files matched) specifiers, among others.
(grep-apply-setting 'grep-find-template
"rg -uu -g <F> <R> <D>")
will produce (when searching within *.txt files)
rg -uu -g \( -iname \*.txt \) test .
error: Invalid value for '--max-count <NUM>': invalid digit found in string
Grep exited abnormally with code 1 at Sun Aug 6 00:23:58