zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <zefram@tao.co.uk>
To: schaefer@brasslantern.com (Bart Schaefer)
Cc: zsh-workers@math.gatech.edu
Subject: Re: REC_EXACT and AUTO_MENU, and compctl -U too
Date: Fri, 19 Jun 1998 19:53:49 +0100 (BST)	[thread overview]
Message-ID: <199806191853.TAA17801@taos.demon.co.uk> (raw)
In-Reply-To: <980619111459.ZM9964@candle.brasslantern.com> from "Bart Schaefer" at Jun 19, 98 11:14:59 am

Bart Schaefer wrote:
>What I'd like is to have recexact behavior when I type the entire prefix
>and automenu behavior when zsh supplies the prefix.

Interesting.  At the moment, zle makes absolutely no distinction
between text inserted by the user and text inserted by completion.
It also does not consider itself to be in the middle of a completion
immediately after completion inserts text (other than in menu completion).
I suppose an extra state flag, to disable REC_EXACT would be reasonable.
Set the flag when completion inserts text, and clear it when any other
editing action occurs.  Would this give the semantics you want?

>While I'm on the subject of mildly stupid completion behavior, automenu
>in conjunction with compctl -U could do with a bit of work.  It'd be a
>lot more useful if menu completion kicked in immediately when compctl -U
>returns multiple matches and automenu is set.  Otherwise you lose both
>the set of completions and the nonunique suffix as soon as the first TAB
>is pressed.

I see what you mean.  I think common prefix recognition should be
disabled when using a -U compctl.  The effect of -U is to disable the
use of existing prefixes, so trying to take advantage of the usual prefix
semantics under such circumstances is pretty stupid.

>                                         Any remarks on how difficult they
>are to pull off?

Neither of them seems particularly difficult to implement, but they
won't exactly make zle_tricky any less _tricky.  Testing will be tedious.

-zefram


  reply	other threads:[~1998-06-19 19:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-19 18:14 Bart Schaefer
1998-06-19 18:53 ` Zefram [this message]
1998-06-19 19:28   ` 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=199806191853.TAA17801@taos.demon.co.uk \
    --to=zefram@tao.co.uk \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@math.gatech.edu \
    /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).