Keybindings stop working if the transient prompt is enabled in zsh #2617
Code of Conduct
What happened?I'm sure that Home and End work correctly before the transient prompt is enabled in zsh. However, once it is enabled, the two keybindings stop working. Tested without other plugins. If I run Theme(This happens with any theme configs, basically irrelevant.) What OS are you seeing the problem on?Linux Which shell are you using?zsh Log output(N/A) |
Replies: 8 comments 7 replies
|
@lewis-yeung not something specific to oh-my-posh it seems. Can you have a look at this issue? |
|
@JanDeDobbeleer Thank you for mentioning that issue. I'm sure that bindkey "^[[F" end-of-line
bindkey "^[[H" beginning-of-line |
|
@lewis-yeung did some research, can you validate the changes in #2595? I have no end/home keys... |
|
@JanDeDobbeleer I have tried your quick fix but the problem persists... |
|
I believe this is related to the |
|
It happens in my case too. This discussion may be related. I'm fixing it by adding these lines in |
|
don't know what this is all about, but I tried oh-my-posh today and it broke zsh, because every time I press up or down arrow (the actual arrow keys on an abbple macbook, running xterm-256color emulation) I get: |
@JanDeDobbeleer Thank you for mentioning that issue. I'm sure that
_posh-zle-line-initfunction has something to do with it, however I don't know how to fix it. Anyway, I can just make the two keys work on my end by binding them via: