an unsuggest widget #23
257
commented
Apr 8, 2014
i thought this would take care of 2.
bindkey '\b' autosuggest-toggle
but then normal backspace doesn't work
257
commented
Apr 8, 2014
and then how do we turn it back ON? hitting backspace again i suppose but i would rather map it into '\t'. that is, instead of toggle one widget for ON and one for OFF.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
say user types 'vi' and suggestion is provided in front of the cursor as '~/.zshrc'. now:
a. to aceept, majority of cases since we know how good zsh-autosuggestions is, is default.
b. to unsuggest, to just take the suggestion out of the line, right now deletes the last char typed by the user.
to turn suggestion back ON, .
c. to edit, . notice that now the suggestion becomes real, it's inserted for the user to edit and mode is changed into vicmd.