diff --git a/modules/completion/selectrum/TODO.org b/modules/completion/selectrum/TODO.org index b5a11de9c..9ba154b99 100644 --- a/modules/completion/selectrum/TODO.org +++ b/modules/completion/selectrum/TODO.org @@ -20,8 +20,6 @@ Need to get it to work for other selectrum commands such =SPC h f=. #+end_src gets us close but moves the cursor to the new screen which is undesirable. probable best strategy: create an ~embark-preview~ that does this, upstream it. -** TODO ~consult-theme~ is buggy -something to do with doom theme loading modifications ** TODO ripgrep height logic bad selectrum bug caused by file descriptors https://github.com/raxod502/selectrum/issues/491 diff --git a/modules/completion/selectrum/config.el b/modules/completion/selectrum/config.el index 94d4b13ca..221bb4976 100644 --- a/modules/completion/selectrum/config.el +++ b/modules/completion/selectrum/config.el @@ -96,9 +96,11 @@ consult-line-numbers-widen t consult-async-input-debounce 0.5 consult-async-input-throttle 0.8) - (setf (alist-get #'consult-bookmark consult-config) (list :preview-key (kbd "C-SPC"))) - (setf (alist-get #'consult-recent-file consult-config) (list :preview-key (kbd "C-SPC"))) - (setf (alist-get #'consult--grep consult-config) (list :preview-key (kbd "C-SPC")))) + (mapc + (lambda (x) (setf + (alist-get x consult-config) + (list :preview-key (list (kbd "C-SPC") (kbd "C-M-j") (kbd "C-M-k"))))) + '(consult-bookmark consult-recent-file consult--grep consult-theme))) (use-package! consult-flycheck :when (featurep! :checkers syntax) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 7caaa10d5..4aeb33fcc 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -208,9 +208,11 @@ :map selectrum-minibuffer-map "M-RET" #'selectrum-submit-exact-input "C-j" #'selectrum-next-candidate + "C-M-j" #'selectrum-next-candidate ;; with preview, see modules/completion/selectrum/config.el "C-S-j" #'selectrum-next-page "C-s-j" #'selectrum-goto-end "C-k" #'selectrum-previous-candidate + "C-M-k" #'selectrum-previous-candidate ;; with preview, see modules/completion/selectrum/config.el "C-S-k" #'selectrum-previous-page "C-s-k" #'selectrum-goto-beginning)))