We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autosuggestions is not cleared even if menu-select is added to ZSH_AUTOSUGGEST_CLEAR_WIDGETS
ZSH_AUTOSUGGEST_CLEAR_WIDGETS=( 'history-search-forward' 'history-search-backward' 'history-beginning-search-forward' 'history-beginning-search-backward' 'history-substring-search-up' 'history-substring-search-down' 'up-line-or-beginning-search' 'down-line-or-beginning-search' 'up-line-or-history' 'down-line-or-history' 'accept-line' 'copy-earlier-word' 'menu-select' ) bindkey '^I' menu-select Menu looks wonky
Autosuggestion is cleared after menu-select
Workaround: ZSH_AUTOSUGGEST_CLEAR_WIDGETS=( 'history-search-forward' 'history-search-backward' 'history-beginning-search-forward' 'history-beginning-search-backward' 'history-substring-search-up' 'history-substring-search-down' 'up-line-or-beginning-search' 'down-line-or-beginning-search' 'up-line-or-history' 'down-line-or-history' 'accept-line' 'copy-earlier-word' 'do_nothing' ) function do_nothing() { } zle -N do_nothing
function custom-menu-select() { zle do_nothing zle menu-select } zle -N custom-menu-select bindkey '^I' custom-menu-select
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Autosuggestions is not cleared even if menu-select is added to ZSH_AUTOSUGGEST_CLEAR_WIDGETS
To Reproduce
ZSH_AUTOSUGGEST_CLEAR_WIDGETS=(
'history-search-forward'
'history-search-backward'
'history-beginning-search-forward'
'history-beginning-search-backward'
'history-substring-search-up'
'history-substring-search-down'
'up-line-or-beginning-search'
'down-line-or-beginning-search'
'up-line-or-history'
'down-line-or-history'
'accept-line'
'copy-earlier-word'
'menu-select'
)
bindkey '^I' menu-select
Menu looks wonky
Expected behavior
Autosuggestion is cleared after menu-select
Desktop
Additional context
Workaround:
ZSH_AUTOSUGGEST_CLEAR_WIDGETS=(
'history-search-forward'
'history-search-backward'
'history-beginning-search-forward'
'history-beginning-search-backward'
'history-substring-search-up'
'history-substring-search-down'
'up-line-or-beginning-search'
'down-line-or-beginning-search'
'up-line-or-history'
'down-line-or-history'
'accept-line'
'copy-earlier-word'
'do_nothing'
)
function do_nothing() {
}
zle -N do_nothing
function custom-menu-select() {
zle do_nothing
zle menu-select
}
zle -N custom-menu-select
bindkey '^I' custom-menu-select
The text was updated successfully, but these errors were encountered: