From e694590b37dc59ad2dd1b417a0649aa6709bfbb4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 14 Apr 2010 09:57:47 +0000 Subject: users/15011: add path-completion style --- Doc/Zsh/compsys.yo | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Doc/Zsh/compsys.yo') 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 -- cgit 1.4.1