From f6bc949c05fd18ee557a89c92f82ff556200707d Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Sun, 2 Aug 2020 20:48:53 +0200 Subject: lib: substitute COMPLETION_WAITING_DOTS for ellipsis Closes #8342 --- lib/completion.zsh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/completion.zsh') diff --git a/lib/completion.zsh b/lib/completion.zsh index 43927a277..47a4ed60f 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -60,11 +60,7 @@ zstyle '*' single-ignored show if [[ $COMPLETION_WAITING_DOTS = true ]]; then expand-or-complete-with-dots() { - # toggle line-wrapping off and back on again - [[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti rmam - print -Pn "%{%F{red}......%f%}" - [[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti smam - + print -Pn "%F{red}…%f" zle expand-or-complete zle redisplay } -- cgit v1.2.3-70-g09d2 From cf347ef3e43eabde5ae86e17d25690ebbeef5e6b Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Tue, 4 Aug 2020 17:30:07 +0200 Subject: lib: bind to all keymaps when COMPLETION_WAITING_DOTS is set Fixes #9050 --- lib/completion.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/completion.zsh') diff --git a/lib/completion.zsh b/lib/completion.zsh index 47a4ed60f..2b62785d5 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -65,7 +65,10 @@ if [[ $COMPLETION_WAITING_DOTS = true ]]; then zle redisplay } zle -N expand-or-complete-with-dots - bindkey "^I" expand-or-complete-with-dots + # Set the function as the default tab completion widget + bindkey -M emacs "^I" expand-or-complete-with-dots + bindkey -M viins "^I" expand-or-complete-with-dots + bindkey -M vicmd "^I" expand-or-complete-with-dots fi # automatically load bash completion functions -- cgit v1.2.3-70-g09d2