Compare commits

...

2 Commits

Author SHA1 Message Date
shadarim
7bd4c77003
Merge aac4c80bfc into c3d4e576c9 2023-09-11 11:38:58 -07:00
shadarim
aac4c80bfc do not ignore bound completion widgets 2022-12-23 17:35:08 +01:00

View File

@ -195,10 +195,15 @@ _zsh_autosuggest_bind_widgets() {
local widget
local ignore_widgets
local bcompwidgets
# don't want to ignore bound completion widgets
# user can manually override this using ZSH_AUTOSUGGEST_IGNORE_WIDGETS
bcompwidgets=${(j:|:)${(M)${${(f)"$(builtin bindkey)"}##*[[:space:]]##}:#_*}}
ignore_widgets=(
.\*
_\*
_^\(${bcompwidgets}\)
${_ZSH_AUTOSUGGEST_BUILTIN_ACTIONS/#/autosuggest-}
$ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX\*
$ZSH_AUTOSUGGEST_IGNORE_WIDGETS