about summary refs log tree commit diff
path: root/Doc/Zsh/compsys.yo
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-16 22:48:41 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-18 16:55:45 +0000
commit0aa6bfd831706bc01a95af97963b702f4e6ff66c (patch)
tree20be13cf714a6fd5b40d1db0b134677e94a59bdf /Doc/Zsh/compsys.yo
parent062aeca2d29318d19524ab54c10502af6a98b2ad (diff)
downloadzsh-0aa6bfd831706bc01a95af97963b702f4e6ff66c.tar.gz
zsh-0aa6bfd831706bc01a95af97963b702f4e6ff66c.tar.xz
zsh-0aa6bfd831706bc01a95af97963b702f4e6ff66c.zip
39044 (in part, see thread): Document _canonical_paths in the manual, too.
This mostly copy-pastes the source code comments and adds markup, however, the
positional arguments are now annotated optional, and a ')' was added.
Diffstat (limited to 'Doc/Zsh/compsys.yo')
-rw-r--r--Doc/Zsh/compsys.yo15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 41864f813..8c7ef0f5a 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -2978,6 +2978,21 @@ widgets to find out if the command line hasn't changed since the last
 time completion was tried.  Only then are the tt(_ignored),
 tt(_correct) and tt(_approximate) completers called.
 )
+findex(_canonical_paths)
+item(tt(_canonical_paths) [ tt(-A) var(var) ] [ tt(-N) ] [ tt(-MJV12nfX) ] var(tag) var(descr) [ var(paths) ... ])(
+This completion function completes all paths given to it, and also tries to
+offer completions which point to the same file as one of the paths given
+(relative path when an absolute path is given, and vice versa; when tt(..)'s
+are present in the word to be completed; and some paths got from symlinks).
+
+tt(-A), if specified, takes the paths from the array variable specified. Paths can
+also be specified on the command line as shown above.  tt(-N), if specified,
+prevents canonicalizing the paths given before using them for completion, in
+case they are already so. The options tt(-M), tt(-J), tt(-V), tt(-1), tt(-2),
+tt(-n), tt(-F), tt(-X) are passed to tt(compadd).
+
+See tt(_description) for a description of var(tag) and var(descr).
+)
 findex(_complete)
 item(tt(_complete))(
 This completer generates all possible completions in a context-sensitive