Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh's answer to the bash completion fm project

* Sven Wischnowsky <wischnow@xxxxxxxxx> [2002-04- 3 17:10:15 +0200]:
> If you have the time to start a project so that we get even more
> completion functions or improvements for completion functions as
> input, we'd all be glad and you'll almost certainly get any support
> from the -workers list we can give. 

  Sure, I don't mind being the central point for this.  Let me get a
starting file together; I'll start with some of the recipes I've picked
up from the web (both compctl and zstyle) and we can go from there.

> I'm not quite sure how support for zstyle would look like, though,
> because that's so user-dependent, but a list of things people can just
> copy and paste into their init files might already be of great value,
> I think.

  Well, this is how I envision it; and of course any improvement up to
and including a complete rewrite is welcome since, like I said, I'm a
newbie.  :)  Basically, I'm starting this project with motivation but
not necessarily a huge amount of knowledge on the subject.  But what a
great way to learn, huh?

> And as for compctl: I don't plan to give it any support anymore and
> don't care if others do. There is still that file with several
> compctls in the distribution as a starting point.

  That's the way I figured it: put the compctl recipes in there when
there isn't a zstyle equivalent (meaning, nobody's bothered to convert
it yet).  These are the questions I'd like to ask the group to give me
the basis for getting started:

  1) I'd like to encourage people to write any new submissions with
zstyle but take both, and initialize both completion systems so they can
all be used.  Is this possible and/or is there a compelling reason not
to do it this way?

 2) What are anybody's thoughts on the performance differences between
having everything in one file, or having one "master" file with no
actual content, but that just initializes the two completion systems and
sources other files for the actual recipes...does it make a difference?

 3) Would somebody mind writing a little code block that checks if each
completion system has already been initialized, and initializes it if
not?  Separate logic for each would be cool.

 4) What should the interpreter line for these files be?  In other
words, what's the most common path for zsh (mine is in /bin, but I've
seen it in /usr/bin and /usr/local/bin also), and what (if any)
command-line options should be used (such as -f, or the equivalent of
bash's -norc/-noprofile)?

  5) Should we zcompile the files?  I'm assuming yes, but just thought
I'd ask in case there are caveats.  Does it matter if the version of zsh
that zcompiles a file is different from the one that runs it?  If so, we
should just ship with instructions on how to zcompile that the users can

  6) Opinions on which of the startup files we should recommend people
call our setup from?  Before or after they initialize their own
completion recipes (in theory the user's should override ours)?


Attachment: pgpniF1r2bc79.pgp
Description: PGP signature

Messages sorted by: Reverse Date, Date, Thread, Author