From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15989 invoked from network); 28 Mar 2002 18:52:21 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 28 Mar 2002 18:52:21 -0000 Received: (qmail 9618 invoked by alias); 28 Mar 2002 18:52:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4792 Received: (qmail 9607 invoked from network); 28 Mar 2002 18:52:03 -0000 From: "Will Sargent" To: "Brian Agnew" , Subject: RE: Completing directories with special suffix Date: Thu, 28 Mar 2002 10:51:14 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <20020328095904.51178.qmail@web14605.mail.yahoo.com> > 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.