Taking back control of hjkl with modifiers keys

Kakoune supports “CSI u” out of the box. So instead of mapping problematic ctrl-key to fancy unicode characters, imho it’s better to configure terminal to send appropriate CSI u escape sequences.

For example, if you map your favorite terminal to send ^[[106;5u on <c-j> then you can map in kakoune as usual:

map global normal <c-j> 'whatever action'
3 Likes