From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28513 invoked from network); 14 Mar 2001 16:23:19 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Mar 2001 16:23:19 -0000 Received: (qmail 28637 invoked by alias); 14 Mar 2001 16:23:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3670 Received: (qmail 28616 invoked from network); 14 Mar 2001 16:23:01 -0000 From: John Cooper To: Peter Stephenson Cc: zsh-users@sunsite.dk, John Cooper Subject: Re: Completing within colon separated paths References: Organization: Citrix Systems Date: 14 Mar 2001 16:30:07 +0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Peter Stephenson writes: > > Is there a way to have TAB complete '/usr/local' from the X (marking cursor > > position) in the following: > > > > $ .:/home/jsc/bin:/usr/locX:/sbin:/usr/sbin:/usr/java/jdk1.3/bin > > If you are using the new completion system, then it will work as long as > you are performing a parameter assignment (or it does for me). So > > $ PATH=/foo/bar:... > > should perform completion correctly. This is why it works in vared --- the > context is treated similarly to a parameter assignment. OK, thanks for the explanation, and it works for me too when doing an assignment. But I do also sometimes want it to perform completion correctly when completing a colon separated path on a cmd line (e.g., the -classpath argument to java or jview). Any way to force the same behavior in this situation? > (You still need expand-or-complete-prefix --- I don't know if it's to be > considered a bug that the colon before is used as a word separator while the > one after isn't.) I've just noticed that using `setopt completeinword' seems to allow me to complete using TAB rather than expand-or-complete-prefix. --- John