From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7860 invoked from network); 28 Apr 1999 17:59:46 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Apr 1999 17:59:46 -0000 Received: (qmail 18080 invoked by alias); 28 Apr 1999 17:59:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6138 Received: (qmail 18072 invoked from network); 28 Apr 1999 17:59:19 -0000 From: "Bart Schaefer" Message-Id: <990428105913.ZM3747@candle.brasslantern.com> Date: Wed, 28 Apr 1999 10:59:13 -0700 In-Reply-To: <9904281500.AA34596@ibmth.df.unipi.it> Comments: In reply to Peter Stephenson "completion in vared" (Apr 28, 5:00pm) References: <9904281500.AA34596@ibmth.df.unipi.it> X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: completion in vared MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 28, 5:00pm, Peter Stephenson wrote: } Subject: completion in vared } } Any thoughts about completion in vared? Would it be possible to get it to } start completion with the context set to _value or _array_value, and } compstate[parameter] set? How about something like function vared { local _complete_vared=${(Pt)1} builtin vared "$@" } And then somewhere (I'm not familiar enough with it yet to be sure where) in the completion functions, do case $_complete_vared in array|association) compstate[parameter]=$words[1] compstate[context]=_array_value;; scalar) compstate[parameter]=$words[1] compstate[context]=_value;; *) ;; esac Obviously some tweaking is needed to handle "vared -c ..." and so on, but you get the idea. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com