Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: new utility function for mixing in extra values



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