Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: More-verbose tab-completion idiom?

Phil Pennock wrote on Wed, Mar 16, 2022 at 20:26:52 -0400:
> Is there a standard idiom and keybinding for "go ahead and get the
> expensive data, to provide me with more details to choose between the
> options", or would I be creating this from scratch?

There's the verbose and extra-verbose styles (the former is default on,
the latter is default off).  To set that style only for one keybinding,
see _generic in the manual.  I don't have a recommendation for what
key to bind.



> My completion for this command also gets pointed at by the installer,
> so I really want to make sure that what I end up with is not a baroque
> Phil Special but instead something which fits better with whatever the
> plugin ecosystems are doing, etc.
> I know about use-cache etc and have that in other completions of mine,
> so if there's no existing idiom for "trigger expensive completion" then
> I will use a zstyle to let people request "descriptions" for this
> completion, and use-cache if that's set.  I'm asking in case there's a
> better way I'm not familiar with.
> Thanks,
> -Phil

Messages sorted by: Reverse Date, Date, Thread, Author