From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21690 invoked from network); 9 Mar 2000 13:42:01 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Mar 2000 13:42:01 -0000 Received: (qmail 28246 invoked by alias); 9 Mar 2000 13:41:56 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10024 Received: (qmail 28239 invoked from network); 9 Mar 2000 13:41:55 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: Matching against file suffix Date: Thu, 9 Mar 2000 16:41:51 +0300 Message-ID: <001501bf89cd$393970f0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200003091242.NAA25899@beta.informatik.hu-berlin.de> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 > > The simple 'r:|.=* r:|=*' works for me, i.e. `foo .../.texi' > gives me the *.texi files. > Well, I never could completely grok matchers :-) Still, it seems, that with above matcher zsh considers only first dot. E.g. zstyle ':completion:*:*:files' matcher 'r:|.=* r:|=*' bor@itsrm2% l WinNT/ patches/ zsh-3.1.6-dev-15.tar.gz zsh-3.1.6-dev-16.tar.gz zsh-3.1.6-dev-17.tar.gz zsh-3.1.6-dev-18.tar.gz zsh-3.1.6-dev-19.tar.gz zsh-3.1.6.tar.gz bor@itsrm2% l .gz beeps, but bor@itsrm2% l .1 bor@itsrm2% l zsh-3.1.6.tar.gz Completing file zsh-3.1.6-dev-15.tar.gz zsh-3.1.6-dev-16.tar.gz zsh-3.1.6-dev-17.tar.gz zsh-3.1.6-dev-18.tar.gz zsh-3.1.6-dev-19.tar.gz zsh-3.1.6.tar.gz I vaguelly remember, that it was once done on purpose. While I agree, that it may be useful at times - is it possible to have alternate way that matches separators as well? Or some other way to get the above? In the above case I'd like being able to say gzcat -19TAB (or even -6-19) and get it expanded to zsh-3.1.6-dev-19.tar.gz > Btw, I have the _match completer in my completer style, but only after > all the matcher-list specs have been tried (which include the one > above and the substring-matcher `l:|=* r:|=*'). > That reminds me. Matcher-list is way too general - it applies to any completion in any context. And matcher is tried unconditionally, isn't it? Is there any feasible way to add per-tag matcher-list? So, that one could say *files matcher-list ... -andrej