Sending single key to the shell when with a modified #3502
-
This bug is quite hard to describe and I'm not sure whether it's ghostty or fish shell, but at least it's not happening in kitty. When I press The video uploaded may do better than my description. Screen.Recording.2024-12-27.at.16.45.05.mov |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Convert to discussion for issue triage. |
Beta Was this translation helpful? Give feedback.
-
Using |
Beta Was this translation helpful? Give feedback.
Ohh apologies I misinterpreted.
So for some context:
ctrl+[
and escape encode to the same thing, and Fish binds escape to exit insert mode but doesn't bindctrl+[
to escape insert mode. But since they encode to the same thing, Fish readsctrl+[
as escape. Ghostty implements fixterms, which changes the two encodings to something different. Fish since version 4 supports fixterms so it interprets that weird\e\[91\;5u
thing (A.K.A. a CSI-u encoded key sequence) asctrl+[
, which is correct, but you actually want it to be interpreted as escape, and hence escape insert mode.So the following solutions are possible:
fish_user_key_bi…