From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17844 invoked from network); 29 Mar 2002 00:52:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 29 Mar 2002 00:52:32 -0000 Received: (qmail 2574 invoked by alias); 29 Mar 2002 00:52:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4795 Received: (qmail 2560 invoked from network); 29 Mar 2002 00:52:11 -0000 Message-ID: <20020329005207.61786.qmail@web14606.mail.yahoo.com> Date: Fri, 29 Mar 2002 00:52:07 +0000 (GMT) From: =?iso-8859-1?q?Brian=20Agnew?= Subject: RE: Completing directories with special suffix To: zsh-users@sunsite.dk In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I don't parse out the classpath. Rather I perform the completion function, and generate the possible package names (and cache them for later use). So I can complete on a classpath setting (including .zips and .jars) rather than on a directory basis. Which is what you really want. Don't know yet if the zsh 4.x completions handle this. Unfortunately my current client is stuck on 3.x at the moment :-( Hopefully I can check this out next week. Brian --- Will Sargent wrote: > > I solved this in a non-zsh fashion by writing a program called > > classfind that > > parsed my classpath and built a cache of classes vs. package/directory. > > > > So I can identify which jar I pick up a particular class from. > > > > I then built a zsh completion around it, such that this program > > was invoked for > > 'java com.oopsconsultancy.'. So it doesn't complete on > > directories, but > > from your classpath. > > > > More details if you're interested. > > That sounds like a great idea; parse out the classpath and then do > completion on it. Woo. > > Will. > > > ===== Brian Agnew http://www.oopsconsultancy.com OOPS Consultancy Ltd brian@oopsconsultancy.com Tel: +44 (0)7720 397526 Fax: +44 (0)20 8682 0012 __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com