diff options
author | Oliver Kiddle <opk@zsh.org> | 2014-08-14 00:00:39 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2014-08-14 19:00:04 +0200 |
commit | 469ee6daef50d0736a38f646bd9eb659b7aad6d1 (patch) | |
tree | e77a3b919090d1d8433b4f06d6b41fcf6c8d387a /Doc/Zsh | |
parent | 5bcf00979fc5e01dd6fddff965aa871491f8b48b (diff) | |
download | zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.gz zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.tar.xz zsh-469ee6daef50d0736a38f646bd9eb659b7aad6d1.zip |
32997: new utility function for separated lists
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/compsys.yo | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 8a9f47db1..920b5903d 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -4741,6 +4741,19 @@ This function accepts the tt(compadd) options `tt(-V)', `tt(-J)', `tt(-r)', `tt(-R)', and `tt(-q)' and passes them on to the tt(compadd) builtin used to add the matches. ) +findex(_sequence) +item(tt(_sequence) [ tt(-s) var(sep) ] [ tt(-n) var(max) ] [ tt(-d) ] var(function) [ tt(-) ] ...)( +This function is a wrapper to other functions for completing items in a +separated list. The same function is used to complete each item in the +list. The separator is specified with the tt(-s) option. If tt(-s) is +omitted it will use `tt(,)'. Duplicate values are not matched unless +tt(-d) is specified. If there is a fixed or maximum number of items in +the list, this can be specified with the tt(-n) option. + +Common tt(compadd) options are passed on to the function. It is possible +to use tt(compadd) directly with tt(_sequence), though tt(_values) may +be more appropriate in this situation. +) findex(_setup) item(tt(_setup) var(tag) [ var(group) ])( This function sets up the special |