Closed blueray453 closed 3 years ago
Yes put something like this in your .zshrc
after zsh-autosuggestions is sourced.
To add a widget:
ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS+=(forward-char)
To remove a widget:
ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=(${ZSH_AUTOSUGGEST_ACCEPT_WIDGETS:#forward-char})
Thank you very much.
I have changed the source code in two places. From:
To:
Now my concern is that, every time I download updates, I have to remember to change these codes.
Is there any way I can put something in my
.zshrc
so that I do not have to touch the original source code. I mean, is there any way I can override any function or something so that my selected widgets accept the entire suggestion.