mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Merge branch 'test-pr-551' into fix-yank-pop
Based on: https://github.com/zsh-users/zsh-autosuggestions/pull/551
This commit is contained in:
commit
50ad465c56
3 changed files with 82 additions and 8 deletions
|
|
@ -84,12 +84,41 @@ typeset -g ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX=autosuggest-orig-
|
|||
run-help
|
||||
set-local-history
|
||||
which-command
|
||||
yank
|
||||
yank-pop
|
||||
zle-\*
|
||||
)
|
||||
if [[ "${ZSH_VERSION}" < 5.2 ]]; then
|
||||
ZSH_AUTOSUGGEST_IGNORE_WIDGETS+=(yank)
|
||||
fi
|
||||
}
|
||||
|
||||
# Pty name for capturing completions for completion suggestion strategy
|
||||
(( ! ${+ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME} )) &&
|
||||
typeset -g ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME=zsh_autosuggest_completion_pty
|
||||
|
||||
# Widgets that should preserve ZLE_KILL flag
|
||||
(( ! ${+ZSH_AUTOSUGGEST_ZLE_KILL_WIDGETS} )) && {
|
||||
typeset -ga ZSH_AUTOSUGGEST_ZLE_KILL_WIDGETS
|
||||
ZSH_AUTOSUGGEST_ZLE_KILL_WIDGETS=(
|
||||
kill-\*
|
||||
backward-kill-\*
|
||||
)
|
||||
}
|
||||
|
||||
# Widgets that should preserve ZLE_YANK flag
|
||||
(( ! ${+ZSH_AUTOSUGGEST_ZLE_YANK_WIDGETS} )) && {
|
||||
typeset -ga ZSH_AUTOSUGGEST_ZLE_YANK_WIDGETS
|
||||
ZSH_AUTOSUGGEST_ZLE_YANK_WIDGETS=(
|
||||
bracketed-paste
|
||||
vi-put-after
|
||||
yank
|
||||
)
|
||||
}
|
||||
|
||||
# Widgets that should preserve ZLE_YANKBEFORE flag
|
||||
(( ! ${+ZSH_AUTOSUGGEST_ZLE_YANKBEFORE_WIDGETS} )) && {
|
||||
typeset -ga ZSH_AUTOSUGGEST_ZLE_YANKBEFORE_WIDGETS
|
||||
ZSH_AUTOSUGGEST_ZLE_YANKBEFORE_WIDGETS=(
|
||||
vi-put-before
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue