|
|
@ -28,22 +28,22 @@ function {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ZLE_AUTOSUGGEST_SUSPEND_WIDGETS=(
|
|
|
|
ZLE_AUTOSUGGEST_SUSPEND_WIDGETS=(
|
|
|
|
vi-cmd-mode vi-backward-char backward-char backward-word beginning-of-line
|
|
|
|
vi-cmd-mode vi-backward-char backward-char backward-word beginning-of-line
|
|
|
|
history-search-forward history-search-backward up-line-or-history
|
|
|
|
history-search-forward history-search-backward up-line-or-history
|
|
|
|
history-beginning-search-forward history-beginning-search-backward
|
|
|
|
history-beginning-search-forward history-beginning-search-backward
|
|
|
|
down-line-or-history history-substring-search-up history-substring-search-down
|
|
|
|
down-line-or-history history-substring-search-up history-substring-search-down
|
|
|
|
backward-kill-word
|
|
|
|
backward-kill-word
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=(
|
|
|
|
ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=(
|
|
|
|
complete-word expand-or-complete expand-or-complete-prefix list-choices
|
|
|
|
complete-word expand-or-complete expand-or-complete-prefix list-choices
|
|
|
|
menu-complete reverse-menu-complete menu-expand-or-complete menu-select
|
|
|
|
menu-complete reverse-menu-complete menu-expand-or-complete menu-select
|
|
|
|
accept-and-menu-complete
|
|
|
|
accept-and-menu-complete
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
ZLE_AUTOSUGGEST_ACCEPT_WIDGETS=(
|
|
|
|
ZLE_AUTOSUGGEST_ACCEPT_WIDGETS=(
|
|
|
|
vi-forward-char forward-char vi-forward-word forward-word vi-add-eol
|
|
|
|
vi-forward-char forward-char vi-forward-word forward-word vi-add-eol
|
|
|
|
vi-add-next vi-forward-blank-word end-of-line
|
|
|
|
vi-add-next vi-forward-blank-word end-of-line
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
autosuggest-pause() {
|
|
|
|
autosuggest-pause() {
|
|
|
@ -100,7 +100,7 @@ autosuggest-resume() {
|
|
|
|
|
|
|
|
|
|
|
|
autosuggest-start() {
|
|
|
|
autosuggest-start() {
|
|
|
|
if [[ -z $ZLE_DISABLE_AUTOSUGGEST && -n $functions[_zsh_highlight] ]]; then
|
|
|
|
if [[ -z $ZLE_DISABLE_AUTOSUGGEST && -n $functions[_zsh_highlight] ]]; then
|
|
|
|
if [[ ${ZSH_HIGHLIGHT_HIGHLIGHTERS[(i)autosuggest]} -gt ${#ZSH_HIGHLIGHT_HIGHLIGHTERS} ]];then
|
|
|
|
if [[ ${ZSH_HIGHLIGHT_HIGHLIGHTERS[(i)autosuggest]} -gt ${#ZSH_HIGHLIGHT_HIGHLIGHTERS} ]]; then
|
|
|
|
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(autosuggest)
|
|
|
|
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(autosuggest)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|