cfoust / cy

🤖 time travel in the terminal
MIT License
107 stars 6 forks source link

Helix having problem with alt+* shortcuts #32

Open last-arg opened 23 hours ago

last-arg commented 23 hours ago

When using helix noticed that in most cases alt shortcuts were not working. On some occasions alt shortcuts worked. When alt shortcut didn't work it just used whatever letter I pressed with alt key.

In terminal command line alt shortcuts work. Like alt+f/b.

Used 'showkey -a' command to see what output 'alt+o' produces.

wezterm (alt + o):

^[o      27 0033 0x1b
        111 0157 0x6f
^[o      27 0033 0x1b
        111 0157 0x6f
^[o      27 0033 0x1b
        111 0157 0x6f

wezterm with cy (alt + o):

o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[ o     27 0033 0x1b
        111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[o      27 0033 0x1b
        111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[       27 0033 0x1b
o       111 0157 0x6f
^[ o     27 0033 0x1b
        111 0157 0x6f

'ctrl + o' seem to work normally with cy.

wezterm with cy (ctrl + o):

^O       15 0017 0x0f
^O       15 0017 0x0f
^O       15 0017 0x0f
cfoust commented 22 hours ago

Interesting! I'm assuming this is on Linux? I just tried this out on macOS with Wezterm's default configuration and got correct behavior both inside and outside of cy. At any rate, alt+ bindings are a little weird in the terminal, there might be something strange going on here.

last-arg commented 21 hours ago

Yes, linux (nixos)

last-arg commented 19 hours ago

Tried some other terminals (alacritty, kitty, rio, st) with cy and got same result as weztzerm with cy.