From 7e69ddda7ff4f6256a376644c5cf94f2dfa52bed Mon Sep 17 00:00:00 2001 From: "Ricardo M. Vilchis" Date: Fri, 31 Jan 2014 08:58:28 -0600 Subject: [PATCH] Suspend autosuggest on 'history-substring-search-up' and 'history-substring-search-down' (zsh-history-substring-plugin commands). Accept on 'end-of-line' (Ctrl-e or END key) --- autosuggestions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autosuggestions.zsh b/autosuggestions.zsh index 029dbf1..34d482a 100644 --- a/autosuggestions.zsh +++ b/autosuggestions.zsh @@ -31,7 +31,7 @@ ZLE_AUTOSUGGEST_SUSPEND_WIDGETS=( vi-cmd-mode vi-backward-char backward-char backward-word beginning-of-line history-search-forward history-search-backward up-line-or-history history-beginning-search-forward history-beginning-search-backward -down-line-or-history +down-line-or-history history-substring-search-up history-substring-search-down ) ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( @@ -42,7 +42,7 @@ accept-and-menu-complete ZLE_AUTOSUGGEST_ACCEPT_WIDGETS=( vi-forward-char forward-char vi-forward-word forward-word vi-add-eol -vi-add-next vi-forward-blank-word +vi-add-next vi-forward-blank-word end-of-line ) autosuggest-pause() {