Closed marlonrichert closed 3 years ago
I added forward-char to ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS, but when I press right arrow, it accepts the whole line, instead of just one character.
forward-char
ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS
Given:
^[OC
bindkey '^[OC'
"^[OC" forward-char
When
$ zsh -df % typeset -ga ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS % ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS=( forward-char vi-forward-char forward-word emacs-forward-word vi-forward-word vi-forward-word-end vi-forward-blank-word vi-forward-blank-word-end vi-find-next-char vi-find-next-char-skip ) % source path/to/zsh-autosuggestions.zsh
s
ource path/to/zsh-autosuggestions.zsh
Then
Only the first character of the suggestion (o) should get accepted.
o
This used to work just fine.
Same issue, win10+wsl2+zsh
Also having the same problem on Arch/zsh 5.8
Appears to be working correctly now.
Describe the bug
I added
forward-char
toZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS
, but when I press right arrow, it accepts the whole line, instead of just one character.To Reproduce
Given:
^[OC
.bindkey '^[OC'
outputs"^[OC" forward-char
.When
s
.ource path/to/zsh-autosuggestions.zsh
as a suggestion.Then
Expected behavior
Only the first character of the suggestion (
o
) should get accepted.Desktop
Additional context
This used to work just fine.