mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2026-02-05 17:10:25 +01:00
Adapted Valodim's capture completion script to
implement a simple completion service
This commit is contained in:
@@ -146,11 +146,13 @@ paused-autosuggest-self-insert() {
|
||||
}
|
||||
|
||||
autosuggest-first-completion() {
|
||||
local cursor=$CURSOR
|
||||
zle .complete-word || return 1
|
||||
CURSOR=$cursor
|
||||
}
|
||||
|
||||
show-suggestion() {
|
||||
[[ $LBUFFER == '' ]] && return
|
||||
[[ -n $ZLE_DISABLE_AUTOSUGGEST || $LBUFFER == '' ]] && return
|
||||
# TODO need a way to reset HISTNO so .history-beginning-search-backward
|
||||
# will always retrieve the last matching history entry
|
||||
# unset HISTNO
|
||||
|
||||
Reference in New Issue
Block a user