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

Adding the ability to use custom keyboad layouts? #51

Open
ghost opened this issue Aug 22, 2023 · 3 comments
Open

Adding the ability to use custom keyboad layouts? #51

ghost opened this issue Aug 22, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 22, 2023

Some people may want to customize their keybinding a little bit without spending hours looking "Oh I forgot to change this switch statement."

An example of that is changing hjkl to characters used by other keyboard layouts (not languages, just layouts like colemak and workman), yneo and neio would be good examples.

A simple translation array should be enough for most uses.

@kyx0r
Copy link
Owner

kyx0r commented Aug 22, 2023

You have a point, this can be done with translation array and a few code changes. But I don't see the need to have this in base version as extra checks slow down input performance.

Would me making a patch that does this and published on patches branch suit your needs? (Although I'm going to do it either way since the patch is ready now.)

Kind Regards,
Kyryl

@kyx0r
Copy link
Owner

kyx0r commented Aug 22, 2023

You can use this and customize to your liking:

https://github.com/kyx0r/nextvi/blob/patches/kbd_layout.patch

@ghost
Copy link
Author

ghost commented Aug 22, 2023

Oh, never thought of making a patch for that. Thank you so much!

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

1 participant