3 ms·
Lazy question but anyone integrated this with Emacs Dired, to transparently search all the files?
by nanna 2y ago
Lazy question but anyone integrated this with Emacs Dired, to transparently search all the files?
- hprotagonist 2y agohttps://randomeffect.net/post/2022/10/07/use-ripgrep-all-from-emacs/ https://randomeffect.net/post/2022/10/07/use-ripgrep-all-fro... possibly?
- setopt 2y agoAccording to Reddit [1], you can use the existing rg.el package, and just point it to the rga binary instead of the rg binary, and it is supposed to just work. [1]: https://www.reddit.com/r/emacs/comments/1eghspj/comment/lg6q2rq https://www.reddit.com/r/emacs/comments/1eghspj/comment/lg6q...
- nanna 2y agoHuh, thanks yeah that does switch the binary to rga, but with rga you need to specify a wildcard operator for the path parameter in order to search PDFs, otherwise it only searches plaintext files, and I'm not sure how to make rg.el's RG function add that... must be a variable but not finding it. (use-package rg ;; ripgrep :ensure t :config (setq rg-executable (executable-find "rga") rg-buffer-name "rga"))