From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26055 invoked from network); 24 Feb 2000 09:49:29 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 Feb 2000 09:49:29 -0000 Received: (qmail 9341 invoked by alias); 24 Feb 2000 09:49:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9862 Received: (qmail 9327 invoked from network); 24 Feb 2000 09:49:15 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: file-patterns problem Date: Thu, 24 Feb 2000 12:49:07 +0300 Message-ID: <001201bf7eac$644e7000$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: <200002240904.KAA15316@beta.informatik.hu-berlin.de> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 > > First of all: if one wants to set a file-pattern explicitly one should > use the tag one wants to set it for. Otherwise it will always be used, > for all possible tags. > > Second: one only gets the extra (i.e. normally not tried) tags one > explicitly selects. So: > > zstyle ':completion:*:*:foo:*:globbed-files' file-patterns '*.yo' > > Makes only the globbed-files and the all-files tags be used. If one > wants directories, one has to say that: > > zstyle ':completion:*:*:foo:*:directories' file-patterns '*(-/)' > > This is a bit ugly. I /think/ I asked if we should make this different > when I added the file-patterns style, but it may well be that I > forgot. So: should we make the directories tag with its usual pattern > be tried automatically if the user explicitly sets the file-patterns > tag for globbed-files? Or should we do that only if the directories tag, > file-patterns style is given, but allow an empty value to stand for > `the normal pattern'? > In other words - setting styles for partucular tag has a side effect of enabling this tag? I find it really confusing. Do not we have special tag to enable/disable tags (ough :-) Hmm looks, like not. The closest is tag-order - and if it gets slightly different name (without so much strngth on ``order'') - it is quite usable to say, which tags and in which order. In the case above - files and path_files should have default tags to try and with default patterns. If you do not want to see all files - set tag-order to the correct tags. If you wnat other patterns - set file-patterbs. If you want only particular tags with particular patterns - set both. /andrej