diff options
-rw-r--r-- | completion.org | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/completion.org b/completion.org index 02a01d8..96e8252 100644 --- a/completion.org +++ b/completion.org @@ -212,15 +212,17 @@ (jao-consult--diff-lines t)))) (unless candidates (error "No changes!")) (consult--jump - (consult--read "Go to hunk: " candidates + (consult--read candidates + :prompt "Go to hunk: " :category 'consult--encode-location :sort nil :require-match t :lookup #'consult--line-match - :preview (consult--preview-position))))) + :state (consult--jump-state))))) (with-eval-after-load "consult" - (add-to-list 'consult-config '(jao-consult-hunks :preview-key any))) + (add-to-list 'consult-config '(jao-consult-hunks :preview-key any)) + (global-set-key (kbd "C-x v c") #'jao-consult-hunks)) #+end_src * embark *** packages |