zsh-users
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.auc.dk
Subject: Re: different kind of glob_complete?
Date: Fri, 3 Sep 1999 09:41:37 +0200 (MET DST)	[thread overview]
Message-ID: <199909030741.JAA03749@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Fri, 3 Sep 1999 05:25:49 +0000


Bart Schaefer wrote:

> On Sep 3, 12:39am, Will Day wrote:
> } Subject: different kind of glob_complete?
> }
> } Here's something I've been wondering about - can I get zsh to perform menu
> } completion of glob patterns that match exactly the end of a string?
> } 
> } I'm thinking this would be like glob_complete:
> } but _without_ the trailing '*'?
> 
> This is interesting.  Compare manual entries; here again is 3.1.6:
> 
> [ manuals for 3.0.6 and 3.1.6 being differently ]
> 
> I think the 3.1.6 behavior was introduced by Sven in zsh-workers/5871, and
> was briefly discussed at that time.  Here's a case where it might differ a
> lot from the 3.0.6 behavior, and it sounds as if Will would prefer the old
> form -- in fact, he'd prefer that completion were not attempted again when
> no matches are found in the first place.
> 
> You can certainly get this by some arrangement of the settings for the new
> function-based completion system, but I could understand the confusion if
> formerly zsh glob-completed file.11 and file.21 but now it glob-completes
> filefoo91blather as well.

No, the behavior wasn't changed, only the manual was corrected, see
zsh-workers/5879. I /think/ we once had this (trying it first without
the `*'), but I don't remember when we lost it.

And, of course for the new completion system it's already there, just
use the `_match' completer with a configuration of `match_original=only'
or `match_original=yes'.

So, yes, the code in tricky.c can do this now (this was added in
5871), but I didn't change the behavior of compctl-style completion.
We could add an option to allow this for it, but should we? Or may
this be an incentive to go to the new completion system?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-09-03  7:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-03  7:41 Sven Wischnowsky [this message]
1999-09-03  9:31 ` Bart Schaefer
1999-09-03  9:45   ` Andrej Borsenkow
1999-09-03 14:40   ` Bart Schaefer
1999-09-03 17:28 ` Will Day
  -- strict thread matches above, loose matches on Subject: below --
1999-09-06  9:13 Sven Wischnowsky
1999-09-03  4:39 Will Day
1999-09-03  5:25 ` 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=199909030741.JAA03749@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-users@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).