From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15099 invoked from network); 6 Jan 2000 14:41:16 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 6 Jan 2000 14:41:16 -0000 Received: (qmail 19665 invoked by alias); 6 Jan 2000 14:41:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9248 Received: (qmail 19658 invoked from network); 6 Jan 2000 14:41:01 -0000 Date: Thu, 6 Jan 2000 15:40:51 +0100 (MET) Message-Id: <200001061440.PAA18394@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Sven Wischnowsky's message of Thu, 6 Jan 2000 13:52:00 +0100 (MET) Subject: Re: PATCH: parameters in command position I wrote: > I forgot... now that user's can say that they don't want to see > certain types of matches ... Trying to make that a bit simpler... this allows values of the form `!tag1 tag2 ...' in the tag-order style which make all other tags be used. Bye Sven diff -ru ../z.old/Completion/Core/_tags Completion/Core/_tags --- ../z.old/Completion/Core/_tags Thu Jan 6 13:52:59 2000 +++ Completion/Core/_tags Thu Jan 6 15:35:45 2000 @@ -48,6 +48,7 @@ case $tag in -) nodef=yes;; *\(\)) "${${tag%%[ ]#\(\)}##[ ]#}" "$@";; + \!*) comptry "${(@)argv:#(${(j:|:)~${=tag[2,-1]}})}";; ?*) comptry ${=tag};; esac done diff -ru ../z.old/Doc/Zsh/compsys.yo Doc/Zsh/compsys.yo --- ../z.old/Doc/Zsh/compsys.yo Thu Jan 6 13:52:39 2000 +++ Doc/Zsh/compsys.yo Thu Jan 6 15:38:36 2000 @@ -1140,9 +1140,12 @@ specifies that, when completing arguments of the command tt(gunzip), files generated by patterns (in this case, those ending in tt(.gz)) and any directories will be presented first, and if that fails, any other files -will be tried. If any string in the value consists of only a hyphen +will be tried. A string starting with an exclamation mark (`tt(!)') +specifies names of tags that are not to be used -- the effect will be +the same as if all other possible tags for the context had been +listed. If any string in the value consists of only a hyphen (`tt(-)'), then only the tags selected by the other strings will be -generated. Normally all tags not explicitly selected will be tried at +generated. Normally all tags not explicitly selected will be tried at the end if the selected tags did not generate any matches. This means that a value of only one hyphen turns off completion in a particular context. -- Sven Wischnowsky wischnow@informatik.hu-berlin.de