2 ms·
>rga simply runs ripgrep (rg) with some options set, especially --pre=rga-preproc and --pre-glob. If all it does is running ripgrep with certain options, creat
by kekebo 7y ago
>rga simply runs ripgrep (rg) with some options set, especially --pre=rga-preproc and --pre-glob.
If all it does is running ripgrep with certain options, creating a corresponding alias might be a simpler solution than adding another binary to the system.
- FreeFull 7y agoAt the very least, you still need the rga-preproc binary
- kekebo 7y agoThat makes more sense, the way the sentence is written made it appear to me like it's just a very simplistic wrapper - but looking through the code shows it's more elaborate than that.
- phiresky 7y agoIt's true that you could mostly replace the "rga" binary with `rg --pre=rga-preproc` and just publish the rga-preproc binary, which does most of the work.. But rga itself adds convenience regarding filter selection and other config options like caching.