First version working calling the widgets

This commit is contained in:
Arnaud Venturi 2017-12-04 16:59:41 +01:00
parent daaedc8e3d
commit 8c0998d232
3 changed files with 4 additions and 6 deletions

View File

@ -109,7 +109,6 @@ _zsh_autosuggest_invoke_original_widget() {
[ $# -gt 0 ] || return [ $# -gt 0 ] || return
local original_widget_name="$1" local original_widget_name="$1"
print $original_widget_name
shift shift

View File

@ -172,8 +172,8 @@ _zsh_autosuggest_suggest() {
_zsh_autosuggest_accept() { _zsh_autosuggest_accept() {
# Accepting the whole line is basically a specific case of # Accepting the whole line is basically a specific case of
# accepting partially with "end-of-line" widget # accepting partially with "end-of-line" widget
# _zsh_autosuggest_partial_accept ".end-of-line" # TODO : find a non-hardcoded way to call this widget
_zsh_autosuggest_partial_accept "end-of-line" _zsh_autosuggest_partial_accept "autosuggest-orig-1-end-of-line"
} }
# Accept the entire suggestion and execute it # Accept the entire suggestion and execute it

View File

@ -230,7 +230,6 @@ _zsh_autosuggest_invoke_original_widget() {
[ $# -gt 0 ] || return [ $# -gt 0 ] || return
local original_widget_name="$1" local original_widget_name="$1"
print $original_widget_name
shift shift
@ -438,8 +437,8 @@ _zsh_autosuggest_suggest() {
_zsh_autosuggest_accept() { _zsh_autosuggest_accept() {
# Accepting the whole line is basically a specific case of # Accepting the whole line is basically a specific case of
# accepting partially with "end-of-line" widget # accepting partially with "end-of-line" widget
# _zsh_autosuggest_partial_accept ".end-of-line" # TODO : find a non-hardcoded way to call this widget
_zsh_autosuggest_partial_accept "end-of-line" _zsh_autosuggest_partial_accept "autosuggest-orig-1-end-of-line"
} }
# Accept the entire suggestion and execute it # Accept the entire suggestion and execute it