From: Bart Schaefer <schaefer@brasslantern.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: zsh-users@zsh.org
Subject: Re: completion, sorting of options
Date: Wed, 8 Nov 2023 13:34:17 -0800 [thread overview]
Message-ID: <CAH+w=7ZO5rrYGimzhfpiSW48JVr-ug9irq150NCyG05bcfJwHw@mail.gmail.com> (raw)
In-Reply-To: <12faf9bd-a600-4bd8-b90b-4a262158045f@eastlink.ca>
On Wed, Nov 8, 2023 at 12:44 PM Ray Andrews <rayandrews@eastlink.ca> 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.
next prev parent reply other threads:[~2023-11-08 21:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-04 15:42 Thomas Lauer
2023-11-04 15:49 ` Mikael Magnusson
2023-11-05 15:02 ` Thomas Lauer
2023-11-05 15:58 ` Bart Schaefer
2023-11-05 16:58 ` Thomas Lauer
2023-11-08 13:24 ` Thomas Lauer
2023-11-08 20:09 ` Bart Schaefer
2023-11-08 20:44 ` Ray Andrews
2023-11-08 21:34 ` Bart Schaefer [this message]
2023-11-08 22:41 ` Ray Andrews
2023-11-09 13:32 ` Thomas Lauer
2023-11-09 18:07 ` Bart Schaefer
2023-11-10 14:04 ` Thomas Lauer
2023-11-10 15:09 ` Ray Andrews
2023-11-10 17:15 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7ZO5rrYGimzhfpiSW48JVr-ug9irq150NCyG05bcfJwHw@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).