From 814bf1c63eeb2dfd44e5edc52ed6a9d9dfaa19a6 Mon Sep 17 00:00:00 2001 From: Olivier Verdier Date: Fri, 9 Sep 2011 15:12:04 +0200 Subject: [PATCH] add completion messages the completion messages are more verbose; they display the category of the current completion (file, command, etc.) --- lib/completion.zsh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/completion.zsh b/lib/completion.zsh index b3cc91822..d9289754f 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -68,3 +68,21 @@ if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then zle -N expand-or-complete-with-dots bindkey "^I" expand-or-complete-with-dots fi + + +# Completion messages +# originally due to Adam Spiers + +# Separate matches into groups +zstyle ':completion:*:matches' group 'yes' + +# Describe each match group. +zstyle ':completion:*:descriptions' format "%B---- %d%b" + +# Messages/warnings format +zstyle ':completion:*:messages' format '%B%U---- %d%u%b' +zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b' + +# Describe options in full +zstyle ':completion:*:options' description 'yes' +zstyle ':completion:*:options' auto-description '%d'