Open Squirreljetpack opened 1 year ago
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
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