Call ripgrep-all in emacs with consult
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Note: put `rga' in your PATH. Or modify `cmd'. | |
(require 'consult) | |
;; helper function for ripgrep-all | |
(defun consult--ripgrep-all (&optional dir initial) | |
"Search with `rga' for files in DIR where the content matches a regexp. | |
The initial input is given by the INITIAL argument. See `consult-grep' | |
for more details." | |
(interactive "P") | |
(consult--grep "Ripgrep-all" #'consult--ripgrep-make-builder dir initial)) | |
;;;###autoload | |
(defun consult-ripgrep-all () | |
;; Bind to a key | |
(interactive) | |
(let ((consult-ripgrep-args "rga --null --line-buffered --color=never --max-columns=1000 --path-separator / --smart-case --no-heading --line-number .")) | |
(consult--ripgrep-all))) | |
(provide 'consult-ripgrep-all) |
The error means that you don't have `consult--ripgrep-builder' installed on your system. It is because the Consult author renamed it. I tried to fix plz check.
What the script running version of consult?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Debugger entered--Lisp error: (void-function consult--ripgrep-builder)