* PATCH: Re: file-patterns
@ 2000-05-10 7:58 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-05-10 7:58 UTC (permalink / raw)
To: zsh-workers
Tanaka Akira wrote:
> Z(4):akr@serein% zsh -f
> serein% bindkey -e; autoload -U compinit; compinit -D
> serein% zstyle ':completion:*' file-patterns '%p:globbed-files *(-/):directories' '*:all-files'
> serein% ls
> %p Completion/ Doc/ Functions/ Src/ Test/
> CVS/ Config/ Etc/ Misc/ StartupFiles/ Util/
>
> Hm. `%p' is completed.
That's because `%' isn't special after `${foo//' any more.
Bye
Sven
Index: Completion/Core/_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_files,v
retrieving revision 1.9
diff -u -r1.9 _files
--- Completion/Core/_files 2000/04/12 12:35:38 1.9
+++ Completion/Core/_files 2000/05/10 07:57:08
@@ -26,7 +26,7 @@
if zstyle -a ":completion:${curcontext}:" file-patterns tmp; then
[[ "$type" = */* ]] && glob="$glob,*(-/)"
pats=()
- for i in ${tmp//\\%p/${${glob:-\*}//:/\\:} }; do
+ for i in ${tmp//%p/${${glob:-\*}//:/\\:} }; do
if [[ $i = *[^\\]:* ]]; then
pats=( "$pats[@]" " $i " )
else
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-10 7:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-10 7:58 PATCH: Re: file-patterns Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).