about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-04-14 09:57:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-04-14 09:57:47 +0000
commite694590b37dc59ad2dd1b417a0649aa6709bfbb4 (patch)
tree60c7b50c62b3a25770d227cef0f56553eb47724a /Doc
parentc30b038a422cb918f5a80115ef9c1541cedf3dea (diff)
downloadzsh-e694590b37dc59ad2dd1b417a0649aa6709bfbb4.tar.gz
zsh-e694590b37dc59ad2dd1b417a0649aa6709bfbb4.tar.xz
zsh-e694590b37dc59ad2dd1b417a0649aa6709bfbb4.zip
users/15011: add path-completion style
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/compsys.yo17
1 files changed, 17 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 034540d3e..88eec25f1 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1123,6 +1123,9 @@ When this style is true, any prefix of a path that matches an existing
 directory is accepted without any attempt to complete it further.
 Hence, in the given example, the path tt(/usr/bin/) is accepted
 immediately and completion tried in that directory.
+
+If you wish to inhibit this behaviour entirely, set the tt(path-completion)
+style (see below) to tt(false).
 )
 kindex(add-space, completion style)
 item(tt(add-space))(
@@ -2259,6 +2262,20 @@ containing color names in the format of an X11 tt(rgb.txt) file.  If
 the style is not set but this file is found in one of various standard
 locations it will be used as the default.
 )
+item(tt(path-completion))(
+This is used by filename completion.  By default, filename completion
+examines all components of a path to see if there are completions of
+that component.  For example, tt(/u/b/z) can be completed to
+tt(/usr/bin/zsh).  Explicitly setting this style to tt(false) inhibits this
+behaviour for path components before the cursor; this overrides the
+setting of tt(accept-exact-dirs).
+
+Even with the style set to tt(false), it is still possible to complete
+multiple paths by setting the option tt(COMPLETE_IN_WORD) and moving the
+cursor back to the first component in the path to be completed.  For
+example, tt(/u/b/z) can be completed to tt(/usr/bin/zsh) if the cursor is
+after the tt(/u).
+)
 kindex(pine-directory, completion style)
 item(tt(pine-directory))(
 If set, specifies the directory containing PINE mailbox files.  There