diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-14 14:55:37 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-14 14:55:37 +0000 |
commit | 11ecfb4d94d6aa5dc42156a5e1c57b8d0bfc0223 (patch) | |
tree | 09f756cfecb0c20133a6833522742f78d792326b /Doc/Zsh/compwid.yo | |
parent | 13862569077a80821c2272e9e484ad6a36010846 (diff) | |
download | zsh-11ecfb4d94d6aa5dc42156a5e1c57b8d0bfc0223.tar.gz zsh-11ecfb4d94d6aa5dc42156a5e1c57b8d0bfc0223.tar.xz zsh-11ecfb4d94d6aa5dc42156a5e1c57b8d0bfc0223.zip |
zsh-workers/7827
Diffstat (limited to 'Doc/Zsh/compwid.yo')
-rw-r--r-- | Doc/Zsh/compwid.yo | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo index 6fbd3ca15..2c68e5d64 100644 --- a/Doc/Zsh/compwid.yo +++ b/Doc/Zsh/compwid.yo @@ -366,11 +366,11 @@ otherwise. ) findex(compadd) cindex(completion widgets, adding specified matches) -xitem(tt(compadd) [ tt(-qQfenUam) ] [ tt(-F) var(array) ]) +xitem(tt(compadd) [ tt(-qQfenUaml) ] [ 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) ]) -xitem([ tt(-W) var(file-prefix) ] [ tt(-y) var(array) ]) +xitem([ tt(-W) var(file-prefix) ] [ tt(-y) var(array) ] [ tt(-d) var(array) ]) xitem([ tt(-J) var(name) ] [ tt(-V) var(name) ] [ tt(-X) var(explanation) ]) xitem([ tt(-r) var(remove-chars) ] [ tt(-R) var(remove-func) ]) xitem([ tt(-M) var(match-spec) ] [ tt(-O) var(array) ] [ tt(-A) var(array) ]) @@ -436,6 +436,23 @@ is like the tt(-y) option of the tt(compctl) builtin command but the var(array) argument may only be the name of an array parameter or a literal array in parentheses containing the strings to display. ) +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 +first element instead of the first var(word), and so on. The +var(array) may be given as the name of a array parameter or directly +as a space-separated list of words in parentheses. + +If there are fewer display strings than var(words), the leftover +var(words) will be displayed unchanged and if there are more display +strings than var(words), the leftover display strings will be silently +ignored. +) +item(tt(-l))( +This option only has an effect if used together with the tt(-d) +options. If it is given, the display strings are listed one per line, +not arrayed in columns. +) item(tt(-J) var(name))( As for tt(compctl) and tt(compgen), this gives the name of the group of matches the words should be stored in. |