about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-23 12:05:50 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-23 12:05:50 +0000
commitc2cc986a0222abdc191baef935c6fd97578f2d14 (patch)
tree797e46f4f7bb831ef0e85528f877bb53bc78f42e
parent60bdd3c24b684917195483dc87c5c9abba0b703f (diff)
downloaddotfiles-c2cc986a0222abdc191baef935c6fd97578f2d14.tar.gz
Revert to not auto-previewing consult-ripgrep
-rw-r--r--.emacs.d/lisp/init-minibuffer.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el
index e62c12f..bf24c2d 100644
--- a/.emacs.d/lisp/init-minibuffer.el
+++ b/.emacs.d/lisp/init-minibuffer.el
@@ -198,7 +198,7 @@ DEFS is a plist associating completion categories to commands."
          ("C-c f" . consult-recent-file)
          ("C-c r" . consult-ripgrep)
          ;; TODO find an alternative to C-c c?
-         ("C-c c r" . consult-ripgrep-no-preview)
+         ("C-c c r" . consult-ripgrep-auto-preview)
          ("C-c c s" . consult-ripgrep-case-sensitive)
          ("C-c c z" . consult-z-ripgrep)
          ("C-c C-*" . consult-ripgrep-symbol-at-point)
@@ -267,7 +267,7 @@ DEFS is a plist associating completion categories to commands."
      (list prefix-arg (when-let ((s (symbol-at-point)))
                         (symbol-name s))))
     (consult-ripgrep dir initial))
-  (defun consult-ripgrep-no-preview (&optional dir initial)
+  (defun consult-ripgrep-auto-preview (&optional dir initial)
     (interactive "P")
     (consult-ripgrep dir initial))
   (defun consult-ripgrep-unrestricted (&optional dir initial)
@@ -320,8 +320,8 @@ DEFS is a plist associating completion categories to commands."
    :preview-key '(:debounce 0.2 any)
    ;; For these commands we can use C-S/C-P to scroll and preview, or M-. to preview
    consult-git-grep consult-grep
-   consult-ripgrep-parent consult-ripgrep-no-preview
-   consult-ripgrep-unrestricted consult-z-ripgrep
+   consult-ripgrep-parent consult-ripgrep consult-ripgrep-case-sensitive
+   consult-ripgrep-unrestricted consult-z-ripgrep consult-ripgrep-symbol-at-point
    consult-bookmark consult-recent-file consult-xref consult-buffer-no-preview
    consult--source-recent-file consult--source-project-recent-file consult--source-bookmark
    :preview-key (list (kbd "M-.") (kbd "C-S-n") (kbd "C-S-p")))