Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: new utility function for mixing in extra values
- X-seq: zsh-workers 54821
- From: dana <dana@xxxxxxx>
- To: "Oliver Kiddle" <opk@xxxxxxx>
- Cc: "Zsh workers" <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: new utility function for mixing in extra values
- Date: Sat, 20 Jun 2026 01:40:51 +0000
- Archived-at: <https://zsh.org/workers/54821>
- Feedback-id: i9be146f9:Fastmail
- In-reply-to: <27288-1781912655.348086@Aw0j.0uSI.Vf_l>
- List-id: <zsh-workers.zsh.org>
- References: <79738-1780534880.642810@Pfpx.X7qo.zidh> <af01c6da-fe05-46ef-9bee-f4c31d8a18de@app.fastmail.com> <27288-1781912655.348086@Aw0j.0uSI.Vf_l>
On Fri 19 Jun 2026, at 23:44, Oliver Kiddle wrote:
> I've not been able to reproduce this. How are you even getting menu
> selection with only a single menu option?
all you need to see both issues is:
% zsh -f
% zstyle ':completion:*' menu yes select
% autoload -Uz compinit && compinit -D
% grep -<TAB> # shows menu, backspace dismisses it
# shutdown <TAB> # shows 'menu', backspace doesn't dismiss it
it's not actually a menu, obv. but it looks like one, it's in the same
place, the descriptions message appears to suggest it's completing
something. but you can't interact with it
maybe it's not as surprising if you don't use menu selection by default,
since the list is never interactable in that configuration, but with my
config at least it is, to me. (actually i find it very confusing either
way, since there's no indication of why it works differently)
On Fri 19 Jun 2026, at 23:44, Oliver Kiddle wrote:
> With your setup, what does $compstate[insert] contain before it is
> emptied? Perhaps a further condition can be added to detect a setup
> similar to yours and act differently.
if you mean around _phony:44, with the above config it's
compstate[insert]=automenu-unambiguous # first tab
compstate[insert]=automenu # subsequent tab
in my actual config i have menu_complete enabled, with that it's
compstate[insert]=menu # first tab
compstate[insert]=automenu # subsequent tab
but it behaves the same either way
On Fri 19 Jun 2026, at 23:44, Oliver Kiddle wrote:
> My preference is to find a way to apply special formatting to the phony
> matches. So something like the list-colors style. I'm open to ideas on
> how that might be best be configured.
that'd make it a little clearer maybe. i'm not sure off the top of my
head though
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author