From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: parameters in command position
Date: Thu, 6 Jan 2000 15:40:51 +0100 (MET) [thread overview]
Message-ID: <200001061440.PAA18394@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Sven Wischnowsky's message of Thu, 6 Jan 2000 13:52:00 +0100 (MET)
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
next reply other threads:[~2000-01-06 14:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-06 14:40 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-01-06 12:52 Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200001061440.PAA18394@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).