Avy isearch action

This commit is contained in:
2024-10-01 23:38:51 -07:00
parent 09eafc6f82
commit 6775265e25

View File

@@ -213,8 +213,15 @@
(cdr (ring-ref avy-ring 0))))
t)
(defun avy-action-isearch (pt)
(unwind-protect
(goto-char pt)
(isearch-forward-thing-at-point))
t)
(setf (alist-get ?\; avy-dispatch-alist) 'avy-action-embark)
(setf (alist-get ?\: avy-dispatch-alist) 'avy-action-embark-dwim)
(setf (alist-get ?i avy-dispatch-alist) 'avy-action-isearch)
(setq avy-timeout-seconds 0.25)
;; Always show candidates even when there's just one, to give an