Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Add some tips in `compadd` docs about groups
On Mon 19 May 2025, at 08:06, Eric Cook wrote:
> if the completer really wanted to check with specific ps options, it could
> use zstyle to check the current context for the command style, if it is set.
> just use _pids(giving the user power), if not, set the style for the current
> context with your default options, then use _pids.
we do this in a few places, especially for caching, but i think the
consensus was that we don't like when functions set styles themselves
it would be nice if there was some way to set a style only for the
duration of a completion call. maybe we could have a helper function
that tracks temporary styles in a local array created by _main_complete,
it sets them if needed in the helper functions, and then _main_complete
calls it again at the end to unset them
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author