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

key bindings that can run multiple actions #17710

Open
1 task done
maan2003 opened this issue Sep 11, 2024 · 3 comments
Open
1 task done

key bindings that can run multiple actions #17710

maan2003 opened this issue Sep 11, 2024 · 3 comments
Labels
feature [core label] keybinds Keyboard shortcuts, mapping, binding, keymaps, etc

Comments

@maan2003
Copy link
Contributor

Check for existing issues

  • Completed

Describe the feature

using workspace::SendKeystrokes is a hack.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@Moshyfawn
Copy link
Member

What are your thoughts on how workspace::SendKeystrokes could be made more native?

@Moshyfawn Moshyfawn added keybinds Keyboard shortcuts, mapping, binding, keymaps, etc and removed triage labels Sep 14, 2024
@maan2003
Copy link
Contributor Author

like instead of value of key binding being a single action it should be multiple actions, exact format will be weird because we have already use array for action argument

@notpeter
Copy link
Member

notpeter commented Dec 3, 2024

One complexity I want to note is that async nature of many actions. For example triggering ["Format Buffer", "Save Buffer", "Close Buffer"] requires the creation of a silent "async wait" step between each of those. While other multi-action binds wouldn't necessarily need to wait ["Save Buffer", "Switch to Terminal"].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature [core label] keybinds Keyboard shortcuts, mapping, binding, keymaps, etc
Projects
None yet
Development

No branches or pull requests

4 participants