From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: Two missing completion functions that bug me
Date: Mon, 2 Apr 2001 11:15:29 +0200 (MET DST) [thread overview]
Message-ID: <200104020915.LAA04501@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: =?iso-8859-1?q?Oliver=20Kiddle?='s message of Fri, 30 Mar 2001 17:35:01 +0100 (BST)
Oliver Kiddle wrote:
> --- Bart Schaefer <schaefer@candle.brasslantern.com> wrote:
>
> > Yes, but when you're allowed to have other options intervene between
> > an
> > option and its argument (as in `tar -fxv file' for example) there has
> > to
> > be some way to prevent completion from inserting the space after
> > `-f'.
>
> I accept this but would argue that there are more commands which don't
> allow other options to intervene. Things like tar can be achieved with
> with states. Maybe _arguments needs some way to describe whether or not
> options can intervene between an option and its argument.
Yes, I was beginning to think the same. Would it be enough to make my
other patch optional (i.e. adding a option to _arguments to select
either that behaviour or to de-select it)? Which should be the
default?
> Things get
> messy if more than one of the options take an argument.
If I understand you correctly... I said in one of my previous messages
that _arguments can do that. Do we have to disallow it? I'd prefer
it if we could keep it, mostly because I don't see a reason to make it
optional -- either it's the intended reason or the specs given to
_arguments or the command line are messed up (only in the last case
there may be a reason to make _arguments smart enough to detect it and
notify the user).
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2001-04-02 9:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-02 9:15 Sven Wischnowsky [this message]
2001-04-02 12:04 ` Oliver Kiddle
2001-04-04 11:25 ` PATCH: " Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2001-03-30 8:23 Sven Wischnowsky
2001-03-30 8:21 Sven Wischnowsky
2001-03-30 16:11 ` Bart Schaefer
2001-03-29 7:59 Bart Schaefer
2001-03-29 10:09 ` Oliver Kiddle
2001-03-29 16:24 ` Bart Schaefer
2001-03-30 9:16 ` Oliver Kiddle
2001-03-30 15:38 ` Bart Schaefer
2001-03-30 15:59 ` Bart Schaefer
2001-03-30 16:35 ` Oliver Kiddle
2001-03-30 16:53 ` Bart Schaefer
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=200104020915.LAA04501@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).