diff options
| author | dana <dana@dana.is> | 2026-05-02 14:49:21 -0500 |
|---|---|---|
| committer | dana <dana@dana.is> | 2026-05-04 19:28:52 -0500 |
| commit | d0c3ced4b9847609c08e92eef5ea78c8b1b8c9e7 (patch) | |
| tree | 4c24000fdb048d83c30767db68e7e3ef57049e52 /Doc | |
| parent | 54448: completion: update base64, btrfs, emulate, tree (diff) | |
| download | zsh-d0c3ced4b9847609c08e92eef5ea78c8b1b8c9e7.tar zsh-d0c3ced4b9847609c08e92eef5ea78c8b1b8c9e7.tar.gz zsh-d0c3ced4b9847609c08e92eef5ea78c8b1b8c9e7.tar.bz2 zsh-d0c3ced4b9847609c08e92eef5ea78c8b1b8c9e7.tar.lz zsh-d0c3ced4b9847609c08e92eef5ea78c8b1b8c9e7.tar.xz zsh-d0c3ced4b9847609c08e92eef5ea78c8b1b8c9e7.tar.zst zsh-d0c3ced4b9847609c08e92eef5ea78c8b1b8c9e7.zip | |
54450 (tweaked): docs: improve _describe documentation
tweaked to fix white-space inconsistencies
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/Zsh/compsys.yo | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 83032b54f..9184072a5 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -4404,16 +4404,22 @@ Multiple groups separated by tt(-)tt(-) can be supplied, potentially with different completion options var(opt)s. The var(descr) is taken as a string to display above the matches if the -tt(format) style for the tt(descriptions) tag is set. This is followed by -one or two names of arrays followed by options to pass to tt(compadd). The -array var(name1) contains the possible completions with their descriptions in -the form `var(completion)tt(:)var(description)'. Any literal colons in -var(completion) must be quoted with a backslash. If a var(name2) is +tt(format) style for the tt(descriptions) tag is set. + +This is followed by one or two names of arrays. Alternatively, the arrays +may be given inline, following the rules described below, using the syntax +tt(LPAR())var(item) var(...)tt(RPAR()). (There is no separate +tt(LPAR()LPAR())var(...)tt(RPAR()RPAR()) form as with tt(_arguments).) + +The array var(name1) contains the possible completions with their (optional) +descriptions in the form `var(completion)tt(:)var(description)'. Any literal +colons in var(completion) must be quoted with a backslash. If a var(name2) is given, it should have the same number of elements as var(name1); in this case the corresponding elements are added as possible completions instead of the var(completion) strings from var(name1). The completion list -will retain the descriptions from var(name1). Finally, a set of -completion options can appear. +will retain the descriptions from var(name1). + +Finally, a set of options to pass to tt(compadd) can appear. If the option `tt(-o)' appears before the first argument, the matches added will be treated as names of command options (N.B. not shell options), |
