Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Proposal: Let compinit make standard widgets with _generic instead of _main_complete
- X-seq: zsh-workers 48213
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Proposal: Let compinit make standard widgets with _generic instead of _main_complete
- Date: Sun, 21 Mar 2021 17:19:56 +0200
- Archived-at: <https://zsh.org/workers/48213>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/CAHLkEDtjqfyXFR7RqXBUVmKc5MwWR2T8zazortvO3ygEphZarA%40mail.gmail.com>
- In-reply-to: <CAH+w=7ZL+soLWYiKUb1Ej20WHbs7johzVWJ+qEvevLP5tK_Z4w@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDuxX39Z7-ioZTgrosL-SQW8dhZy9_v694u7w4Mtu+EHSw@mail.gmail.com> <CAH+w=7b4b-FBVbrZ4SWSiqxP4OcuLmzQWjqZ39c6Q-WZzPq60Q@mail.gmail.com> <CAH+w=7ZL+soLWYiKUb1Ej20WHbs7johzVWJ+qEvevLP5tK_Z4w@mail.gmail.com>
On Sun, Mar 21, 2021 at 1:53 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> + zstyle -t ":completion:::::" generic-widgets "$WIDGET"
Feels weird to call that style `generic-widgets`, because it actually
makes the completion context less generic and more specific. IMO,
`specific-widgets` would be a more accurate name for this. Or perhaps
something like `(auto-)named-widgets`, borrowing from a sentence in
the manual:
> The _function,_ if completion is called from a named widget rather than through the normal completion system.
Yes, I think `_generic` is a pretty strange name for that function in
the first place. :)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author