Skip to content

Conversation

@Joao-Pedro-Castelli
Copy link

The idea is for there to be a section in the toml file for writing a single remapping that will applie to multiple modes at once. This first version only adds a "all_modes" section, but, in the future, there could be other combinations of modes for the remap to apply to. The name of the section could change also.
closes #14770

@ghuh
Copy link

ghuh commented Nov 18, 2025

As part of this commit, should probably mention this feature on the remapping page

@Joao-Pedro-Castelli
Copy link
Author

Yes, I will add documentation.

@ghuh
Copy link

ghuh commented Nov 20, 2025

Awesome, thank you!

@RoloEdits
Copy link
Contributor

RoloEdits commented Nov 20, 2025

I also wonder about a syntax like:

[keys."normal|select"]

This would give more granularity rather than "all modes", while still reducing duplication.

Have you explored alternate options?

@Joao-Pedro-Castelli
Copy link
Author

Yes, we were discussing how to write sections that could apply to any combinations of modes. Using '|' seems good to me. Just need to think some details of implementation, like how to decide when on key remmaping overrides another on the same key when there could be sections like "normal|select" and "select|insert". Or if a key can only be configured one time per mode.
I'm open to any sugestions.

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

Successfully merging this pull request may close these issues.

Allow key remapping that applies to all modes

3 participants