emacs-which-key icon indicating copy to clipboard operation
emacs-which-key copied to clipboard

`which-key-show-keymap` should show prefix key for that map

Open rieje opened this issue 8 years ago • 1 comments

As a noob, using which-key-show-keymap seems to be lacking some information that would be useful. For example, I want to see which keys are bound in evil-window-map so I use which-key-show-keymap. It shows the keys bound in that map, but not actual key bound to that map (the "prefix key" for the map). For example, it doesn't show that to trigger that map I should do C-w as the prefix key.

This information is available in describe-bindings:

C-w               evil-window-map

rieje avatar Jul 03 '17 16:07 rieje

I could maybe do something along these lines, but I'm not aware of a definitive way of determining this. A keymap may be bound to multiple keys, it may or may not be active depending on the current buffer, it can even be accessible or inaccessible depending on the character, etc.

justbur avatar Jul 16 '17 18:07 justbur