From 22c3204495f1a5e55aaf84a850fb892d1ecb6fe8 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 23 May 2000 14:23:16 +0000 Subject: add -[ak] options to compadd (11533) --- Doc/Zsh/compwid.yo | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Doc') diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo index e2083baba..ee2f7f2bd 100644 --- a/Doc/Zsh/compwid.yo +++ b/Doc/Zsh/compwid.yo @@ -415,7 +415,7 @@ sect(Builtin Commands) startitem() findex(compadd) cindex(completion widgets, adding specified matches) -xitem(tt(compadd) [ tt(-qQfenUal12) ] [ tt(-F) var(array) ]) +xitem(tt(compadd) [ tt(-akqQfenUl12) ] [ tt(-F) var(array) ]) xitem([ tt(-P) var(prefix) ] [ tt(-S) var(suffix) ]) xitem([ tt(-p) var(hidden-prefix) ] [ tt(-s) var(hidden-suffix) ]) xitem([ tt(-i) var(ignored-prefix) ] [ tt(-I) var(ignored-suffix) ]) @@ -480,6 +480,14 @@ match. item(tt(-I) var(ignored-suffix))( Like tt(-i), but gives an ignored suffix. ) +item(tt(-a))( +With this flag the var(words) are taken as names of arrays and the +possible matches are their values. +) +item(tt(-k))( +With this flag the var(words) are taken as names of associative arrays +and the possible matches are their keys. +) item(tt(-d) var(array))( This adds per-match display strings. The var(array) should contain one element per var(word) given. The completion code will then display the -- cgit 1.4.1