[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 9a15d1f 103/110: avy.el (avy-show-dispatch-help): Add and
From: |
Oleh Krehel |
Subject: |
[elpa] master 9a15d1f 103/110: avy.el (avy-show-dispatch-help): Add and bind to "?" |
Date: |
Sat, 11 May 2019 10:15:54 -0400 (EDT) |
branch: master
commit 9a15d1f37b99a18d8f05e0c4f7362b67e6766130
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy-show-dispatch-help): Add and bind to "?"
Fixes abo-abo/ace-window#91
---
avy.el | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/avy.el b/avy.el
index ce7fba9..c8af0b9 100644
--- a/avy.el
+++ b/avy.el
@@ -456,12 +456,28 @@ KEYS is the path from the root of `avy-tree' to LEAF."
((memq char '(27 ?\C-g))
;; exit silently
(throw 'done 'exit))
+ ((eq char ??)
+ (avy-show-dispatch-help)
+ (throw 'done 'restart))
((mouse-event-p char)
(signal 'user-error (list "Mouse event not handled" char)))
(t
(message "No such candidate: %s, hit `C-g' to quit."
(if (characterp char) (string char) char))))))
+(defun avy-show-dispatch-help ()
+ "Display action shortucts in echo area."
+ (let ((len (length "avy-action-")))
+ (message "%s" (mapconcat
+ (lambda (x)
+ (format "%s: %s"
+ (propertize
+ (char-to-string (car x))
+ 'face 'aw-key-face)
+ (substring (symbol-name (cdr x)) len)))
+ avy-dispatch-alist
+ " "))))
+
(defvar avy-handler-function 'avy-handler-default
"A function to call for a bad `read-key' in `avy-read'.")
- [elpa] master 0e59474 109/110: avy.el (avy--read-candidates): Fix docstring, (continued)
- [elpa] master 0e59474 109/110: avy.el (avy--read-candidates): Fix docstring, Oleh Krehel, 2019/05/11
- [elpa] master 85b5d57 104/110: avy.el (avy-jump): Add predicate argument, Oleh Krehel, 2019/05/11
- [elpa] master 152b07f 102/110: avy.el (avy-process): Return res, Oleh Krehel, 2019/05/11
- [elpa] master a723090 106/110: avy.el (avy--overlay-at-full): More consistent face order, Oleh Krehel, 2019/05/11
- [elpa] master 5b3676f 095/110: avy.el (avy-next): New command to go to the next candidate after avy-read, Oleh Krehel, 2019/05/11
- [elpa] master 4d52b5c 105/110: avy.el (avy--line-cands): Allow "invisible" 'org-link, Oleh Krehel, 2019/05/11
- [elpa] master e9f4d85 092/110: avy.el (avy-goto-char-timer): Obey avy-background for initial search, Oleh Krehel, 2019/05/11
- [elpa] master 9124022 097/110: avy.el (avy--generic-jump): Update docstring about removed arg, Oleh Krehel, 2019/05/11
- [elpa] master b19a23a 096/110: avy.el (avy--visible-p): buffer-invisibility-spec can be t, Oleh Krehel, 2019/05/11
- [elpa] master 118a3d6 093/110: Update readme.md: add melpa badges, Oleh Krehel, 2019/05/11
- [elpa] master 9a15d1f 103/110: avy.el (avy-show-dispatch-help): Add and bind to "?",
Oleh Krehel <=
- [elpa] master 74501e1 094/110: avy.el: More fixes to org-toggle-link-display, Oleh Krehel, 2019/05/11
- [elpa] master 8db2759 099/110: Change avy--process to accept cleanup function, Oleh Krehel, 2019/05/11
- [elpa] master 7d73cee 100/110: avy.el: Use avy-process instead of avy--process, Oleh Krehel, 2019/05/11
- [elpa] master fd0101e 101/110: avy.el (avy-push-mark): Turn off message, Oleh Krehel, 2019/05/11
- [elpa] master e802510 098/110: avy.el (avy-jump): New API, don't use avy--generic-jump, Oleh Krehel, 2019/05/11
- [elpa] master 7cfe11e 074/110: Added ability to display avy candidates from bottom to top, Oleh Krehel, 2019/05/11
- [elpa] master 8606a89 072/110: avy.el (avy--process): Remove redundant copy-sequence, Oleh Krehel, 2019/05/11
- [elpa] master 002b8f3 091/110: avy.el (avy--visible-p): Add to fix org-toggle-link-display, Oleh Krehel, 2019/05/11
- [elpa] master 16482e0 089/110: avy.el (avy--generic-jump): Remove `style' arg, Oleh Krehel, 2019/05/11
- [elpa] master 909483e 090/110: avy.el (avy--process): Make `overlay-fn' arg optional, Oleh Krehel, 2019/05/11