Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion, sorting of options
On Wed, Nov 8, 2023 at 12:44 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> Purely theoretically, is this the sort of thing where a hook might be used?
Not really. Hooks are typically for things driven from the C code,
where an escape to shell control extends the default behavior, whereas
_arguments is entirely shell code -- you can either call it
differently (as I've suggested) or replace it with a different
function.
The next-closest thing to "hooks" is using the -e option of zstyle to
cause code to run when a style is looked up, but of course for the
most typical cases the implementation will look up a style as few
times as possible and just store the result.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author