qezz / zee

Opinionated fork of https://github.com/zee-editor/zee
Apache License 2.0
0 stars 0 forks source link

Work around Linux keycodes by mapping ^_ to ^7 #5

Closed qezz closed 3 months ago

qezz commented 3 months ago

On Linux terminal, keycodes for ^/, ^_, and ^7 are the same. The parsed key depends on the library that handles the input. In case of Zee, it uses Zi framework for terminal based applications, which uses crossterm library to get key events.

For more details, see crossterm issues:

To check if it reproduces on your machine, you can try

showkey --ascii