-
I've used iTerm2 for too long, and I'm ready to switch to this great terminal emulator. The last thing that bothers me is that I get the following
which binds to SHIFT-ENTER in iTerm, but on Ghostly, I get a I've searched the discussion history and the documentation but couldn't find an answer. What would be the best way to bind a zsh command to SHIFT-ENTER in Ghostty? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It's not the same key combination, but it's the same underlying issue as #3151 (reply in thread). TL;DR: Ghostty implements fixterms, which many other terminal emulators don't; you can either change your |
Beta Was this translation helpful? Give feedback.
-
Thanks @00-kat for the pointer! While I'm definitely not deep into the matter, I found out that I hat an explicit key binding setup in iTerm to map Shift-Enter to esc-S-E which I send used in a
in ghostty's config and to bind to the autosuggest-execute widget in I kept, in zsh config:
In summary, I already used a 'hack' to map Shift-Enter in iTerm (i.e. mapping to a free escape sequence), I just have forgot 🤦 (but this info might be helpful for other use cases, too) |
Beta Was this translation helpful? Give feedback.
Thanks @00-kat for the pointer! While I'm definitely not deep into the matter, I found out that I hat an explicit key binding setup in iTerm to map Shift-Enter to esc-S-E which I send used in a
bindkey
in my zsh config. So the solution is quite simple for this use case:in ghostty's config and to bind to the autosuggest-execute widget in I kept, in zsh config:
In summary, I already used a 'hack' to map Shift-Enter in iTerm (i.e. mapping to a free escape sequence), I just have forgot 🤦 (but this info might be helpful for other use cases, too)