Skip to content

Commit

Permalink
lib: bind to all keymaps when COMPLETION_WAITING_DOTS is set
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella committed Aug 4, 2020
1 parent e04564d commit cf347ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf347ef

Please sign in to comment.