orbitalquark / textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.
https://orbitalquark.github.io/textadept
MIT License
640 stars 38 forks source link

Hotkeys with Cyrillic alphabet #355

Open glow12121 opened 1 year ago

glow12121 commented 1 year ago

Key combinations (ctrl+v, ctrl+c, etc.) do not work when the keymap is switched to one with a Cyrillic alphabet.

orbitalquark commented 1 year ago

This is a known limitation. Textadept's key bindings use characters emitted by keys, not the keys themselves. The only workaround that I know of is to create a map of Cyrillic keys to Latin keys in your ~/.textadept/init.lua. It's tedious and not ideal though. Sorry about that :(

rgieseke commented 1 year ago

See also here: https://github.com/orbitalquark/textadept/issues/64#issuecomment-785710403

glow12121 commented 1 year ago

Nor sure how relevant this is, but this is how the problem was addressed in Vim: https://r-notes.ru/49-knigi/spravochnik-po-vim/175-podderzhka-russkogo-yazyka-i-rusifikatsiya.html#russian-keymap

Basically:

:set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz