tg icon indicating copy to clipboard operation
tg copied to clipboard

Not only-latin keybindings support.

Open VolkovIlia opened this issue 3 years ago • 3 comments

Is it any opportunity to add any other layout for keybindings? For example "hjkl" = "ролд"?

VolkovIlia avatar Jun 21 '21 11:06 VolkovIlia

That's something that I wanted to add for a long time. But for now don't know how to do it correctly. My experiments failed to work reliably.

paul-nameless avatar Jun 21 '21 12:06 paul-nameless

I'am not a programmer but can give you some ideas:

  1. Mb it is simple to add opportunity for binding keys for pushing other keys: example bind л push k
  2. As I assume the main language of this project is python, mb its is useful to ask guys from this project https://aur.archlinux.org/packages/qutebrowser-not-only-latin-git/ for advice.

Just ideas. Hope this feature will be in your soft, soon!:)

VolkovIlia avatar Jun 22 '21 17:06 VolkovIlia

That's something that I wanted to add for a long time. But for now don't know how to do it correctly. My experiments failed to work reliably.

Even though a bad solution, I'm thinking maybe grab the input key, check ordinal (ord()) of the character and then check in the handler which action to do?

>>> user_input = "π"  # for example pressed π
>>> ord(user_input)
960
>>> # and then do stuff accordingly
>>>

for multiple keybinds (like ng) maybe they should be hashed and the hex number converted into a number instead of taking an ordinal?

TruncatedDinoSour avatar Dec 04 '21 22:12 TruncatedDinoSour