From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: XML version of completion function
Date: Wed, 1 Aug 2001 10:31:09 +0200 (MET DST) [thread overview]
Message-ID: <200108010831.KAA01554@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <1010801073909.ZM324@candle.brasslantern.com>
Bart Schaefer wrote:
> ...
>
> Are you really, seriously suggesting that it's worthwhile to expend
> 50-70 thousand bytes defining the completion for a single command?
> In the case of zip that's 45% larger than the executable; it's even
> larger than the executable and its manual page combined.
>
> In find.xml there are about 5500 bytes of actual data, including the
> help text ... the other 89% is XML tags. I'm sorry, I just can't get
> excited about this.
Well, that's more or less what I expected from using xml ;-)
There is a reason behind terse syntaxes like C and _arguments-as-we-
know-it after all.
But apart from that... some comments:
- I actually like being able to add help texts. Peter and I
half-heartedly discussed that around the time _complete_help was
added. I still don't know where the help texts could be saved and how
_complete_help or a similar function could look them up, though.
Especially if there are versions in different languages.
- I don't understand why <optspec> is always nested in <argspec> -- is
the latter meant to be an _arguments-arg? If so, see next point.
- I think this should be more like describing the command than
describing arguments for _arguments. That should also make the things
shorter and more readable. But whenever I try to describe how that
would look like, I more or less describe _arguments. Hm.
- I don't think I'll ever use this format unless someone comes up with a
tool that converts a much shorter description to it or that generates
most of this automatically. How have you generated this? Typed it
in? If so, tell us about your experience with it -- would you like to
write completions this way?
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next prev parent reply other threads:[~2001-08-01 8:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-01 6:59 Felix Rosencrantz
2001-08-01 7:39 ` Bart Schaefer
2001-08-01 8:31 ` Sven Wischnowsky [this message]
2001-08-03 7:31 ` Felix Rosencrantz
2001-08-03 7:36 ` Felix Rosencrantz
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=200108010831.KAA01554@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@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).