From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: Re: PATCH: completion or'ing and grouping
Date: Wed, 4 Nov 1998 08:46:06 +0100 (MET) [thread overview]
Message-ID: <199811040746.IAA28739@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Tue, 03 Nov 1998 18:03:24 +0100
Peter Stephenson wrote:
>
> Got this to apply with a few bits applied by hand, without creating
> any untoward problems as far as I can see. My first couple of
> comments are:
>
> First, the last hunk of the patch deletes
>
> ! 1 or -1. For example,
> !
> ! nofill(tt(compctl -s '`users`' -x 'n[1,@]' -k hosts -- talk))
> !
> ! will usually complete usernames, but if you insert an tt(@) after the
> ! name, names from the array var(hosts) (assumed to contain hostnames,
> ! though you must make the array yourself) will be completed. Other
> ! commands such as tt(rcp) can be handled similarly.
Oops, sorry. Below is a patch that can be used to easily fix this.
Bye
Sven
*** Doc/Zsh/compctl.yo Tue Nov 3 11:45:24 1998
--- ../zsh-3.1.5/Doc/Zsh/compctl.yo Sun Oct 25 22:18:11 1998
***************
*** 536,542 ****
including the var(index)th occurrence of this string will not be
considered part of the completion, but the rest will. var(index) may
be negative to count from the end: in most cases, var(index) will be
! 1 or -1.
)
item(tt(N[)var(index)tt(,)var(string)tt(])...)(
Like tt(n) except that the string will be
--- 476,489 ----
including the var(index)th occurrence of this string will not be
considered part of the completion, but the rest will. var(index) may
be negative to count from the end: in most cases, var(index) will be
! 1 or -1. For example,
!
! nofill(tt(compctl -s '`users`' -x 'n[1,@]' -k hosts -- talk))
!
! will usually complete usernames, but if you insert an tt(@) after the
! name, names from the array var(hosts) (assumed to contain hostnames,
! though you must make the array yourself) will be completed. Other
! commands such as tt(rcp) can be handled similarly.
)
item(tt(N[)var(index)tt(,)var(string)tt(])...)(
Like tt(n) except that the string will be
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1998-11-04 8:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-04 7:46 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-11-05 8:07 Sven Wischnowsky
1998-11-05 8:42 ` Peter Stephenson
1998-11-05 7:57 Sven Wischnowsky
1998-11-04 14:09 Sven Wischnowsky
1998-11-04 7:56 Sven Wischnowsky
1998-11-04 11:06 ` Peter Stephenson
1998-11-04 16:35 ` Peter Stephenson
1998-11-04 18:20 ` Bart Schaefer
1998-11-03 10:55 Sven Wischnowsky
1998-11-03 17:03 ` Peter Stephenson
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=199811040746.IAA28739@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@math.gatech.edu \
/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).