mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
do not ignore bound completion widgets
This commit is contained in:
parent
a411ef3e09
commit
aac4c80bfc
1 changed files with 9 additions and 4 deletions
|
@ -195,10 +195,15 @@ _zsh_autosuggest_bind_widgets() {
|
||||||
|
|
||||||
local widget
|
local widget
|
||||||
local ignore_widgets
|
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=(
|
ignore_widgets=(
|
||||||
.\*
|
.\*
|
||||||
_\*
|
_^\(${bcompwidgets}\)
|
||||||
${_ZSH_AUTOSUGGEST_BUILTIN_ACTIONS/#/autosuggest-}
|
${_ZSH_AUTOSUGGEST_BUILTIN_ACTIONS/#/autosuggest-}
|
||||||
$ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX\*
|
$ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX\*
|
||||||
$ZSH_AUTOSUGGEST_IGNORE_WIDGETS
|
$ZSH_AUTOSUGGEST_IGNORE_WIDGETS
|
||||||
|
|
Loading…
Reference in a new issue