mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
complete after autoloaded directories (a rather ugly hack); remove old code in _files (comma separated patterns); improve docs for fake style and for comma separated qualifier lists (12892)
This commit is contained in:
parent
5d4faa678e
commit
0f2250de44
@ -1,3 +1,11 @@
|
||||
2000-10-05 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 12892: Completion/Core/_files, Completion/Core/_path_files,
|
||||
Doc/Zsh/compsys.yo, Doc/Zsh/expn.yo: complete after autoloaded
|
||||
directories (a rather ugly hack); remove old code in _files (comma
|
||||
separated patterns); improve docs for fake style and for comma
|
||||
separated qualifier lists
|
||||
|
||||
2000-10-04 Tanaka Akira <akr@zsh.org>
|
||||
|
||||
* 12886: Completion/User/_cvs: make _cvs_vendor_branches to handle
|
||||
|
@ -55,7 +55,7 @@ for def in "$pats[@]"; do
|
||||
for sdef in "$def[@]"; do
|
||||
|
||||
tag="${${sdef#*[^\\]:}%%:*}"
|
||||
pat="${${${sdef%%:${tag}*}//\\:/:}//,/ }"
|
||||
pat="${${sdef%%:${tag}*}//\\:/:}"
|
||||
|
||||
(( $tried[(I)${(q)pat}] )) && continue
|
||||
|
||||
|
@ -315,6 +315,10 @@ for prepath in "$prepaths[@]"; do
|
||||
SUFFIX="${tsuf%%/*}"
|
||||
fi
|
||||
|
||||
# Force auto-mounting. There might be a better way...
|
||||
|
||||
: ${^tmp1}/${PREFIX}${SUFFIX}/.(N/)
|
||||
|
||||
# Get the matching files by globbing.
|
||||
|
||||
if [[ "$tpre$tsuf" = */* ]]; then
|
||||
|
@ -1010,9 +1010,10 @@ components after the first ambiguous one.
|
||||
)
|
||||
kindex(fake, completion style)
|
||||
item(tt(fake))(
|
||||
Currently, this style is only used when completing files and lookup up
|
||||
Currently, this style is only used when completing files and looked up
|
||||
with the tag tt(files). Its values are of the form
|
||||
`var(dir)tt(:)var(names...)'. This will add the var(names) as
|
||||
`var(dir)tt(:)var(names...)'. This will add the var(names) (strings
|
||||
separated by spaces) as
|
||||
possible matches when completing in the directory var(dir), even if no
|
||||
such files really exist.
|
||||
|
||||
|
@ -1748,7 +1748,11 @@ enditem()
|
||||
|
||||
More than one of these lists can be combined, separated by commas. The
|
||||
whole list matches if at least one of the sublists matches (they are
|
||||
`or'ed, the qualifiers in the sublists are `and'ed).
|
||||
`or'ed, the qualifiers in the sublists are `and'ed). Some qualifiers,
|
||||
however, affect all matches generated, independent of the sublist in
|
||||
which they are given. These are the qualifiers `tt(M)', `tt(T)',
|
||||
`tt(N)', `tt(D)', `tt(n)', `tt(o)', `tt(O)' and the subscripts given
|
||||
in brackets (`tt([...])').
|
||||
|
||||
If a `tt(:)' appears in a qualifier list, the remainder of the expression in
|
||||
parenthesis is interpreted as a modifier (see noderef(Modifiers)
|
||||
|
Loading…
Reference in New Issue
Block a user