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 48444
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Proposal: Let compinit make standard widgets with _generic instead of _main_complete
- Date: Fri, 9 Apr 2021 12:35:30 -0700
- Archived-at: <https://zsh.org/workers/48444>
- In-reply-to: <80787-1617995485.617359@q0GB.FFaP.JPH4>
- 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> <CAHLkEDtjqfyXFR7RqXBUVmKc5MwWR2T8zazortvO3ygEphZarA@mail.gmail.com> <CAH+w=7bhfeV0k5y0FtZLTsm_Y5uBU1wLJw7GUVubfxsKopaRDg@mail.gmail.com> <CAHLkEDuo=8MbjYWOmQM5d4uLOzo+BC6XTy=S14-BfeBPMZjysw@mail.gmail.com> <CAH+w=7YAxLGd=cTFkOqHXiUpk1iPp=7u3-qvEKmE6dTSELcoMA@mail.gmail.com> <80787-1617995485.617359@q0GB.FFaP.JPH4>
On Fri, Apr 9, 2021 at 12:11 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> The intended way to do this is to use zle -C to define a custom widget
> based on an existing one and _generic. And if you really want the
> existing widget, zstyle -e allows you to check $WIDGET. Or is the aim
> here actually something else like making it easier for a plugin to base
> changes on underlying user settings.
I think use of "zstyle -e" was either overlooked or was itself
considered too roundabout.
In another thread (zsh-newuser-install) the aim is to change the
behavior of the existing widget (to invoke menu selection) without
having to rebind the keys that reference it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author