From: GoTaR <gotar@poczta.onet.pl>
To: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
Cc: zsh-users@sunsite.dk
Subject: Re: completions issues
Date: Sun, 14 Jul 2002 12:49:11 +0200 [thread overview]
Message-ID: <20020714104911.GA824@os> (raw)
In-Reply-To: <1026637038.2785.3.camel@localhost.localdomain>
On Sun, Jul 14, 2002 at 12:57:10 +0400, Borsenkow Andrej wrote:
> > gotar:~: smsaddr -l r[tab]
> > SMS alias
> > rtrzepla -- 692xxx
> >
> > gotar:~: smsaddr -l 6[tab]
> > SMS alias
> > 600xxx -- prudy
>
> Oh, if you want _this_ you do not need any perl magic at all. Just add
> all your SMS aliases two times - once as alias:number and second time as
> number:alias. Completion does all matching for you.
No no no, adding both will cause showing them _all_ when completion
without any prefix - and I don't want doubled entries like this:
gotar:~: smsaddr -l [tab]
SMS alias
rtrzepla -- 692xxx
692xxx -- rtrzepla
> I assumed you always to always have alias name as match and number as
> description.
No, it should be dynamically switched for every entry separately, e. g.
gotar:~: smsaddr -l [tab]
SMS alias
6bone -- 509xxx
admol -- 602xxx
gotar:~: smsaddr -l 6[tab]
SMS alias
602xxx -- admol
6bone -- 509xxx
As you can see here - 6 is used as prefix to alias OR number and part
without it is used as description.
--
GoTaR <gotar@priv0.onet.pl>
PLD stuff at http://mops.uci.agh.edu.pl/~gotar/
prev parent reply other threads:[~2002-07-14 20:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-10 20:47 GoTaR
2002-07-12 18:44 ` Borsenkow Andrej
2002-07-13 19:37 ` GoTaR
2002-07-13 21:20 ` Bart Schaefer
2002-07-14 10:55 ` GoTaR
2002-07-14 21:09 ` Bart Schaefer
2002-07-14 8:57 ` Borsenkow Andrej
2002-07-14 10:49 ` GoTaR [this message]
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=20020714104911.GA824@os \
--to=gotar@poczta.onet.pl \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--cc=zsh-users@sunsite.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).