Skip to content

zsh's bindkey not working for shift-enter #5368

Answered by rhuss
rhuss asked this question in Q&A
Discussion options

You must be logged in to vote

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:

keybind = shift+enter=esc:SE

in ghostty's config and to bind to the autosuggest-execute widget in I kept, in zsh config:

bindkey '^[SE' autosuggest-execute

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)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@00-kat
Comment options

@rhuss
Comment options

Answer selected by rhuss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants