zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: "Sven Wischnowsky" <wischnow@informatik.hu-berlin.de>,
	<zsh-workers@sunsite.auc.dk>
Subject: RE: PATCH: completion parameters etc.
Date: Mon, 1 Mar 1999 15:31:31 +0300	[thread overview]
Message-ID: <003601be63df$6fddb450$21c9ca95@mowp.siemens.ru> (raw)
In-Reply-To: <199903011210.NAA14601@beta.informatik.hu-berlin.de>



> -----Original Message-----
> From: Sven Wischnowsky [mailto:wischnow@informatik.hu-berlin.de]
> Sent: Monday, March 01, 1999 3:10 PM
> To: zsh-workers@sunsite.auc.dk
> Subject: PATCH: completion parameters etc.
>
>     - `list': May be `list', `autolist', `ambiguous' or unset. Can be
>       used to control the completion listing behavior by setting it to
>       one of these values.
>     - `insert': May be `unambiguous' (for non-menucompletion), `menu',
>       `automenu' or unset (for listing-only). May be set to control if
>       and how the command line should be changed.
>     - `exact': Set to `accept' or unset by the completion code. May
>       also be set to `accept' or unset. This controls if `REC_EXACT'
>       should be used. Only too late I thought about adding a key
>       `exact_string' that can contain the string itself. I may produce
>       a patch for this later.


Aha! I had slightly different idea, but yourth is probably more general
anyway ... But for the record ...

Currently (not as current already :-) we have several ad hoc builtin
completion widgets and use them to describe behaviour of user-defined ones.
My suggestion was actually to define a set of per-widget parameters that
describe how completion behaves and use zle command to set them.

I call them parameters and not flags because I expect some of them to take
arguments. The problem is to find out the proper set of orthogonal features.
At least list, menu, expand, complete seem to be quite independent. In this
way one could define a widget, that would e.g. list possible expansion (yep,
we already have such a beast). And with menu parameter we could say, at
which attempt should menu start. Zero (disable), one (zsh traditional), two
(bash).

But here the question: how do your state parameters interact with global
options? Such as automenu etc?

regards

/andrej


  reply	other threads:[~1999-03-01 12:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-01 12:10 Sven Wischnowsky
1999-03-01 12:31 ` Andrej Borsenkow [this message]
1999-03-01 13:04 ` Peter Stephenson
1999-03-01 12:41 Sven Wischnowsky
1999-03-01 13:29 Sven Wischnowsky

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='003601be63df$6fddb450$21c9ca95@mowp.siemens.ru' \
    --to=borsenkow.msk@sni.de \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.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).