parent
f6040832e5
commit
1977b3dfba
1 changed files with 5 additions and 3 deletions
|
@ -469,7 +469,8 @@ will open with point on that line."
|
||||||
(let ((default-directory doom-emacs-dir))
|
(let ((default-directory doom-emacs-dir))
|
||||||
(split-string
|
(split-string
|
||||||
(cdr (doom-call-process
|
(cdr (doom-call-process
|
||||||
"rg" "--no-heading" "--line-number" "--iglob" "!*.org"
|
doom-ripgrep-executable
|
||||||
|
"--no-heading" "--line-number" "--iglob" "!*.org"
|
||||||
(format "%s %s($| )"
|
(format "%s %s($| )"
|
||||||
"(^;;;###package|\\(after!|\\(use-package!)"
|
"(^;;;###package|\\(after!|\\(use-package!)"
|
||||||
package)))
|
package)))
|
||||||
|
@ -694,7 +695,7 @@ config blocks in your private config."
|
||||||
(defvar counsel-rg-base-command)
|
(defvar counsel-rg-base-command)
|
||||||
(defun doom--help-search (dirs query prompt)
|
(defun doom--help-search (dirs query prompt)
|
||||||
;; REVIEW Replace with deadgrep
|
;; REVIEW Replace with deadgrep
|
||||||
(unless (executable-find "rg")
|
(unless doom-ripgrep-executable
|
||||||
(user-error "Can't find ripgrep on your system"))
|
(user-error "Can't find ripgrep on your system"))
|
||||||
(cond ((fboundp 'consult--grep)
|
(cond ((fboundp 'consult--grep)
|
||||||
(consult--grep prompt #'consult--ripgrep-make-builder (cons data-directory dirs) query))
|
(consult--grep prompt #'consult--ripgrep-make-builder (cons data-directory dirs) query))
|
||||||
|
@ -708,7 +709,8 @@ config blocks in your private config."
|
||||||
;; () TODO Helm support?
|
;; () TODO Helm support?
|
||||||
((grep-find
|
((grep-find
|
||||||
(string-join
|
(string-join
|
||||||
(append (list "rg" "-L" "--search-zip" "--no-heading" "--color=never"
|
(append (list doom-ripgrep-executable
|
||||||
|
"-L" "--search-zip" "--no-heading" "--color=never"
|
||||||
(shell-quote-argument query))
|
(shell-quote-argument query))
|
||||||
(mapcar #'shell-quote-argument dirs))
|
(mapcar #'shell-quote-argument dirs))
|
||||||
" ")))))
|
" ")))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue