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

Support alt/ctrl/shift modifiers in macro-style keybindings #11929

Open
adamchalmers opened this issue Oct 23, 2024 · 2 comments · May be fixed by #11930
Open

Support alt/ctrl/shift modifiers in macro-style keybindings #11929

adamchalmers opened this issue Oct 23, 2024 · 2 comments · May be fixed by #11930
Labels
C-enhancement Category: Improvements

Comments

@adamchalmers
Copy link

Macro-style keybindings were added in #4709, and I really like them. But I can't figure out how to emit a macro keybinding that presses, say "Alt+o" -- in other keybindings, this is done via "A-o". But I can't use this in macro-style keybindings. For example

x = "@mi)dA-o"

I'd like this to type five keys: "mi)d" then the combined "A-o" i.e. "Alt+o". Instead it treats "A-o" as three separate keys, A then - then o. Is there any way to make a macro-style keybinding emit a modifier+key combination? If not, I think there should be. If so, it should be documented under the docs for macro-style keybindings.

@adamchalmers adamchalmers added the C-enhancement Category: Improvements label Oct 23, 2024
@gabydd
Copy link
Member

gabydd commented Oct 23, 2024

Should be <A-o>

@adamchalmers
Copy link
Author

Thanks, I can open a PR to docs to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants