mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-04-17 11:35:31 +08:00
First version working calling the widgets
This commit is contained in:
parent
daaedc8e3d
commit
8c0998d232
@ -109,7 +109,6 @@ _zsh_autosuggest_invoke_original_widget() {
|
||||
[ $# -gt 0 ] || return
|
||||
|
||||
local original_widget_name="$1"
|
||||
print $original_widget_name
|
||||
|
||||
shift
|
||||
|
||||
|
@ -172,8 +172,8 @@ _zsh_autosuggest_suggest() {
|
||||
_zsh_autosuggest_accept() {
|
||||
# Accepting the whole line is basically a specific case of
|
||||
# accepting partially with "end-of-line" widget
|
||||
# _zsh_autosuggest_partial_accept ".end-of-line"
|
||||
_zsh_autosuggest_partial_accept "end-of-line"
|
||||
# TODO : find a non-hardcoded way to call this widget
|
||||
_zsh_autosuggest_partial_accept "autosuggest-orig-1-end-of-line"
|
||||
}
|
||||
|
||||
# Accept the entire suggestion and execute it
|
||||
|
@ -230,7 +230,6 @@ _zsh_autosuggest_invoke_original_widget() {
|
||||
[ $# -gt 0 ] || return
|
||||
|
||||
local original_widget_name="$1"
|
||||
print $original_widget_name
|
||||
|
||||
shift
|
||||
|
||||
@ -438,8 +437,8 @@ _zsh_autosuggest_suggest() {
|
||||
_zsh_autosuggest_accept() {
|
||||
# Accepting the whole line is basically a specific case of
|
||||
# accepting partially with "end-of-line" widget
|
||||
# _zsh_autosuggest_partial_accept ".end-of-line"
|
||||
_zsh_autosuggest_partial_accept "end-of-line"
|
||||
# TODO : find a non-hardcoded way to call this widget
|
||||
_zsh_autosuggest_partial_accept "autosuggest-orig-1-end-of-line"
|
||||
}
|
||||
|
||||
# Accept the entire suggestion and execute it
|
||||
|
Loading…
Reference in New Issue
Block a user