mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-30 15:02:18 +01:00
add preserve-prefix style to keep pathname prefix unchanged (15400)
This commit is contained in:
parent
0d3bfa66c1
commit
72b56dc458
3 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-07-17 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 15400: Completion/Unix/Type/_path_files,
|
||||
Completion/Zsh/Command/_zstyle, Doc/Zsh/compsys.yo: add
|
||||
preserve-prefix style to keep pathname prefix unchanged
|
||||
|
||||
2001-07-13 Andrej Borsenkow <bor@zsh.org>
|
||||
|
||||
* 15278 (Sven), 15390: Completion/Unix/Command/_mount,
|
||||
|
|
|
@ -75,6 +75,7 @@ styles=(
|
|||
ports c:_ports
|
||||
prefix-hidden c:bool
|
||||
prefix-needed c:bool
|
||||
preserve-prefix c:preserve-prefix
|
||||
range c:
|
||||
regular c:bool
|
||||
remote-access c:bool
|
||||
|
@ -304,6 +305,10 @@ while [[ -n $state ]]; do
|
|||
_wanted values expl 'insert unambiguous string' compadd true false pattern
|
||||
;;
|
||||
|
||||
preserve-prefix)
|
||||
_message 'pattern matching prefix to keep'
|
||||
;;
|
||||
|
||||
urgh)
|
||||
_wanted values expl no compadd no false off 0
|
||||
;;
|
||||
|
|
|
@ -1834,6 +1834,16 @@ all.
|
|||
|
||||
The default style for this style is `true'.
|
||||
)
|
||||
kindex(preserve-prefix, completion style)
|
||||
item(tt(preserve-prefix))(
|
||||
This style is used when completing path names. Its value should be a
|
||||
pattern matching an initial prefix of the word to complete that should
|
||||
be left unchanged under all circumstances. For example, on some Unices
|
||||
an initial `tt(//)' (double slash) has a special meaning and hence
|
||||
should be kept. For that one could set this style to the string
|
||||
`tt(//)'. As another example, setting this style to `tt(?:/)' under
|
||||
Cygwin would allow completion after `tt(a:/...)' and the like.
|
||||
)
|
||||
kindex(range, completion style)
|
||||
item(tt(range))(
|
||||
This is used by the tt(_history) completer and the
|
||||
|
|
Loading…
Reference in a new issue