zsh-users
 help / color / mirror / code / Atom feed
From: "Brian Agnew" <brianagnew@yahoo.com>
To: zsh-users@sunsite.dk
Subject: RE: Completing directories with special suffix
Date: Fri, 29 Mar 2002 00:52:07 +0000 (GMT)	[thread overview]
Message-ID: <20020329005207.61786.qmail@web14606.mail.yahoo.com> (raw)
In-Reply-To: <JMEGJPLJEICAFFFLHGPBKEABDAAA.wsargent@atg.com>

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 <wsargent@atg.com> 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.<TAB>'. 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


  reply	other threads:[~2002-03-29  0:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-27 21:52 Will Sargent
2002-03-27 21:57 ` Will Sargent
2002-03-28  9:59 ` Brian Agnew
2002-03-28 18:51   ` Will Sargent
2002-03-29  0:52     ` Brian Agnew [this message]
2002-03-29  2:36       ` Will Sargent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020329005207.61786.qmail@web14606.mail.yahoo.com \
    --to=brianagnew@yahoo.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).