diff options
Diffstat (limited to '.emacs.d/lisp/init-completion.el')
-rw-r--r-- | .emacs.d/lisp/init-completion.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-completion.el b/.emacs.d/lisp/init-completion.el index fd9385a..c346b04 100644 --- a/.emacs.d/lisp/init-completion.el +++ b/.emacs.d/lisp/init-completion.el @@ -230,6 +230,7 @@ ("C-c c M-r" . consult-ripgrep-unrestricted) ("C-c c *" . consult-ripgrep-symbol-at-point) ("C-c *" . consult-ripgrep-symbol-at-point) + ("C-c c z" . consult-z-ripgrep) ("C-c c l" . consult-line) ("C-c c m" . consult-multi-occur) ("C-c c k" . consult-keep-lines) @@ -326,6 +327,10 @@ (interactive "P") (let ((consult-ripgrep-args (replace-regexp-in-string "\\." "-uu ." consult-ripgrep-args))) (consult-ripgrep dir initial))) + (defun consult-z-ripgrep (&optional dir initial) + (interactive "P") + (let ((consult-ripgrep-args (replace-regexp-in-string "\\." "-z ." consult-ripgrep-args))) + (consult-ripgrep dir initial))) (defun consult-buffer-no-preview () (interactive) (consult-buffer)) |