textadept icon indicating copy to clipboard operation
textadept copied to clipboard

Hotkeys with Cyrillic alphabet

Open glow12121 opened this issue 2 years ago • 3 comments
trafficstars

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

glow12121 avatar Feb 06 '23 08:02 glow12121

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 :(

orbitalquark avatar Feb 06 '23 13:02 orbitalquark

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

rgieseke avatar Feb 06 '23 13:02 rgieseke

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

glow12121 avatar Feb 06 '23 13:02 glow12121