diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-27 17:33:44 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-27 17:33:44 +0000 |
commit | ca7ec1bf029448a3f38d8a2a4226e8c47896fffc (patch) | |
tree | ea2815d45f81f982d9f9cd1d57a71b07d1c494f5 /Doc/Zsh | |
parent | 8ef649b31e0a5f8c16acc3543874c182221c6ec5 (diff) | |
download | zsh-ca7ec1bf029448a3f38d8a2a4226e8c47896fffc.tar.gz zsh-ca7ec1bf029448a3f38d8a2a4226e8c47896fffc.tar.xz zsh-ca7ec1bf029448a3f38d8a2a4226e8c47896fffc.zip |
zsh-workers:6113
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/compwid.yo | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo index 34f1140b9..15ccf9a67 100644 --- a/Doc/Zsh/compwid.yo +++ b/Doc/Zsh/compwid.yo @@ -340,7 +340,7 @@ xitem([ tt(-W) var(file-prefix) ]) 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) ]) -item([ tt(--) ] [ var(words) ... ])( +item([ tt(-D) var(array) ] [ tt(--) ] [ var(words) ... ])( This builtin command can be used to add matches directly and control all the information the completion code stores with each possible @@ -518,6 +518,13 @@ on the command line and the string `tt(foo)' as one of the var(words), this option stores the string `tt(nofoo)' in the array, whereas the tt(-O) option stores the `tt(foo)' originally given. ) +item(tt(-D) var(array))( +As with tt(-O), the var(words) are not added to the set of possible +completions. Instead, the completion code tests every var(word) if +it matches what is on the line. If the var(n)'th var(word) does not +match, the var(n)'th element of the var(array) is removed. Elements +for which the corresponding var(word) is matched are retained. +) item(tt(-), tt(--))( This flag ends the list of flags and options. All arguments after it will be taken as the words to use as matches even if they begin with |