zsh-workers
 help / color / mirror / code / Atom feed
* Re: ** matcher does not work anymore
@ 2000-04-11 11:18 Sven Wischnowsky
  2000-04-11 11:25 ` Andrej Borsenkow
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Wischnowsky @ 2000-04-11 11:18 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> This stopped to work:
> 
> bor@itsrm2% l /tools/share/zsh
> 3.1.6-dev-22/    site-functions/
> bor@itsrm2% l /to/sh/z/-22<TAB>
> B-e-e-p
> 
> It did work at least yesterday.

Ahem. The problem wasn't the `**'. The problem was that I got a bit
confused with the blanks in file-patterns, forgetting to remove
trailing spaces from the tags.

Sorry to everyone...

> Yes, I do use ** matcher.

I know, implemented personally for you ;-)

Bye
 Sven

Index: Completion/Core/_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_files,v
retrieving revision 1.7
diff -u -r1.7 _files
--- Completion/Core/_files	2000/04/11 07:57:56	1.7
+++ Completion/Core/_files	2000/04/11 11:17:13
@@ -47,7 +47,7 @@
 for def in "$pats[@]"; do
   def="${def##[[:blank:]]#}"
   while [[ "$def" = *[^\\][[:blank:]]* ]]; do
-    sdef="${(M)def#*[^\\][[:blank:]]}"
+    sdef="${${(M)def#*[^\\][[:blank:]]}%%[[:blank:]]#}"
     tag="${${sdef#*[^\\]:}%%:*}"
     pat="${${${sdef%%:${tag}*}//\\\\:/:}//,/ }"
 

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: ** matcher does not work anymore
  2000-04-11 11:18 ** matcher does not work anymore Sven Wischnowsky
@ 2000-04-11 11:25 ` Andrej Borsenkow
  0 siblings, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2000-04-11 11:25 UTC (permalink / raw)
  To: Sven Wischnowsky, zsh-workers


>
> > Yes, I do use ** matcher.
>
> I know, implemented personally for you ;-)
>

Am I really the only one who's using it? But it is sooo really handy ...

-andrej


^ permalink raw reply	[flat|nested] 3+ messages in thread

* ** matcher does not work anymore
@ 2000-04-11 10:51 Andrej Borsenkow
  0 siblings, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2000-04-11 10:51 UTC (permalink / raw)
  To: ZSH workers mailing list

This stopped to work:

bor@itsrm2% l /tools/share/zsh
3.1.6-dev-22/    site-functions/
bor@itsrm2% l /to/sh/z/-22<TAB>
B-e-e-p

It did work at least yesterday.

Yes, I do use ** matcher.

bor@itsrm2% zstyle -L
zstyle ':completion:*' completer _oldlist _complete _match
zstyle :completion::approximate: max-errors 3
zstyle ':completion:*' menu 'select=0'
zstyle ':completion:*::::default' list-colors ''
zstyle ':completion:*:match:*' original yes
zstyle ':completion:*:match:*' insert-unambiguous yes
zstyle ':completion:*:paths' ambiguous yes
zstyle ':completion:*:oldlist' list _match
zstyle ':completion:*' list-rows-first yes
zstyle ':completion:*:(directories|(globbed-|all-|)files)' matcher
'r:|[.-]=**'
zstyle ':completion:*' group-name ''
zstyle ':completion:*:descriptions' format 'Completing %d'

-andrej

Have a nice DOS!
B >>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-04-11 11:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-11 11:18 ** matcher does not work anymore Sven Wischnowsky
2000-04-11 11:25 ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
2000-04-11 10:51 Andrej Borsenkow

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).