Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
w9 opened this issue Jul 13, 2022 · 3 comments
Open

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

w9 opened this issue Jul 13, 2022 · 3 comments

Comments

@w9
Copy link

w9 commented Jul 13, 2022

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!

@treed
Copy link

treed commented Aug 6, 2022

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.

@w9
Copy link
Author

w9 commented Aug 6, 2022

@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.

@treed
Copy link

treed commented Aug 6, 2022

Ahh yeah, fair enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants