feat: quit with q

This commit is contained in:
Pavel Korytov 2022-04-16 13:02:06 +03:00
parent 69aaafb23e
commit 747ef2bf77
2 changed files with 3 additions and 1 deletions

View file

@ -4,4 +4,4 @@ Doing some experimentation with avy & dired. Still somewhat flaky.
[[./img/screenshot.png]]
The only available command is =M-x avy-dired-goto-line=. Use =K= and =J= to scroll up and down while in the avy state, or =C-g= to quit.
The only available command is =M-x avy-dired-goto-line=. Use =K= and =J= to scroll up and down while in the avy state, =C-g= or =q= to quit.

View file

@ -81,6 +81,8 @@ Relevant only if `dired-hide-details-mode' is inactive."
(?J (progn
(scroll-down-command)
(avy-dired-goto-line)))
(?q (progn
(throw 'done 'abort)))
(_ (funcall avy-handler-old char)))))
(r (avy-process (avy-dired-cands))))
(when (not (memq r '(t nil)))