Possible Bug: Control + Left bracket (ctrl + [) clears prompt in zsh #4271
Unanswered
exothe
asked this question in
Feature Requests, Ideas
Replies: 1 comment 1 reply
-
|
I've noticed this as well, I can reproduce the same 'delete the most recent insert' behavior. I'm using Ghostty 1.0.1 on macos 14.7.1 w/ zsh 5.9. I haven't got a clue about how to start debugging something like this but would be happy to help do so if anyone has ideas! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using zsh with vi mode. To enter vi mode, I usually press
ctrl+[as this is more comfortable as hittingesc. Pressingescworks properly, I get into vi normal mode of zsh, but pressingctrl+[clears my prompt and then gets me into normal mode.It seems like
ctrl+[is not always clearing the entire prompt, but just everything that has been typed since the last change from normal mode to insert mode. That's whyctrl+[only clears the "test" in the last prompt of my example gif, because I've hitescbefore.My ghostty version:
Ghostty 1.0.1-dev+0000000Config: Initially I thought it would be a config issue, but
ctrl+[is not listed as a keybind. I've tried to disable the keybind usingkeybind = ctrl+left_bracket=unbind, but this has no effect. Usingkeybind = ctrl+left_bracket=ignorecompletely ignores the keybind, so it doesn't clear the prompt, but also doesn't get me into normal mode.So I have no keybinds in my config. The entire config looks just like this:
Beta Was this translation helpful? Give feedback.
All reactions