From b2aebcad027eab3339677eb790bfa41b37c3aef0 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 2 Aug 2000 10:36:19 +0000 Subject: if compcontext is an assoc, the keys are the completions and the values are their descriptions (12483) --- Doc/Zsh/compsys.yo | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Doc/Zsh/compsys.yo') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 7687dfb7a..cb0d4880a 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -2315,9 +2315,12 @@ named `tt(_tilde)'). Before trying to find a function for a specific context, tt(_complete) checks if the parameter `tt(compcontext)' is set. If it is set to an array, the elements are taken to be the possible matches which will be -completed using the tag `tt(values)' and the description `tt(value)'. -If `tt(compcontext)' to a string containing colons, it should be of -the form `var(tag)tt(:)var(descr)tt(:)var(action)'. In this case the +completed using the tag `tt(values)' and the description +`tt(value)'. If it is set to an associative array, the keys are used +as the possible completions and the values (if non-empty) are used as +descriptions for the matches. If `tt(compcontext)' is set to a string +containing colons, it should be of +the form `var(tag)tt(:)var(descr)tt(:)var(action)'. In this case the var(tag) and var(descr) give the tag and description to use and the var(action) says what should be completed in one of the forms described for the tt(_arguments) utility function below. -- cgit 1.4.1