about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-02 10:36:19 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-02 10:36:19 +0000
commitb2aebcad027eab3339677eb790bfa41b37c3aef0 (patch)
tree7fcd90dfce5bd5101274de338796f719fd0d89a3 /Doc/Zsh
parenteabfc368bd798b92f6b878430464b79de77c463f (diff)
downloadzsh-b2aebcad027eab3339677eb790bfa41b37c3aef0.tar.gz
zsh-b2aebcad027eab3339677eb790bfa41b37c3aef0.tar.xz
zsh-b2aebcad027eab3339677eb790bfa41b37c3aef0.zip
if compcontext is an assoc, the keys are the completions and the values are their descriptions (12483)
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/compsys.yo9
1 files changed, 6 insertions, 3 deletions
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.