From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4768 invoked from network); 14 Jul 2002 20:24:57 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Jul 2002 20:24:57 -0000 Received: (qmail 15597 invoked by alias); 14 Jul 2002 20:24:39 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5163 Received: (qmail 15584 invoked from network); 14 Jul 2002 20:24:38 -0000 Date: Sun, 14 Jul 2002 12:49:11 +0200 From: GoTaR To: Borsenkow Andrej Cc: zsh-users@sunsite.dk Subject: Re: completions issues Message-ID: <20020714104911.GA824@os> References: <20020710204701.GA3362@os> <1026499603.2775.6.camel@localhost.localdomain> <20020713193728.GA11214@os> <1026637038.2785.3.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <1026637038.2785.3.camel@localhost.localdomain> User-Agent: Mutt/1.4i 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 PLD stuff at http://mops.uci.agh.edu.pl/~gotar/