helpful icon indicating copy to clipboard operation
helpful copied to clipboard

Can `helpful-key` show which key, key combo, or key sequence was pressed?

Open w9 opened this issue 3 years ago • 3 comments

I really like the fact that describe-key says what key I pressed in emacs's kbd syntax

<next> runs the command scroll-up-command...

Whereas helpful-key does not

scroll-up-command is an interactive and natively compiled function...

This is sometimes very useful for identifying the kbd code for non-standard keys. For example, it took me a while to figure out that <next> is the kbd sequence for the "Page Down" key.

I'd appreciate if you can add this snippet into the helpful-key buffer. Please let me know if that's already possible. Thanks!

w9 avatar Jul 13 '22 15:07 w9

Not the author, and it's not quite what you're asking for (in that it doesn't tell you which specific keybinding you asked about), but helpful-key does list all of the bindings to the command and the keymaps tthose bindings appear in, including <next> in global-map in the case of "Page Down".

In my case, it's the third section, after Signature and Documentation.

Hopefully this helps.

treed avatar Aug 06 '22 10:08 treed

@treed Thanks. Sometimes this is enough but not always. For example, it is quite difficult to figure out that Ctrl + ` sends out C-@ in terminal emacs. If you never knew this and reads through the keymaps, you might be scratching your head why C-` is not in any of the keymaps listed.

w9 avatar Aug 06 '22 16:08 w9

Ahh yeah, fair enough.

treed avatar Aug 06 '22 23:08 treed