summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-ace.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/init-ace.el b/lisp/init-ace.el
index 3aeb3b0..db1a514 100644
--- a/lisp/init-ace.el
+++ b/lisp/init-ace.el
@@ -11,9 +11,13 @@
(defun km/ace-link-dired ()
"Ace jump to files in dired buffers."
(interactive)
- (ali-generic
- (km/ali--dired-collect-references)
- (org-open-file (dired-get-filename))))
+ (let ((res (avy--with-avy-keys km/ace-link-dired
+ (avy--process
+ (km/ali--dired-collect-references)
+ #'avy--overlay-pre))))
+ (when res
+ (goto-char res)
+ (org-open-file (dired-get-filename)))))
(defun km/ali--dired-collect-references ()
(let ((end (window-end))