diff --git a/README.org b/README.org index 1fb8661..683b3d3 100644 --- a/README.org +++ b/README.org @@ -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. diff --git a/avy-dired.el b/avy-dired.el index 223c505..2cae016 100644 --- a/avy-dired.el +++ b/avy-dired.el @@ -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)))