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

Re: Completion and command versions



On 14 Mar, Peter wrote:
> 
> The standard way is using the _pick_variant function.
> 
> If it's too dangerous to run the command to find out what it does, you
> probably need a style.  `variant' is already use by _pick_variant,
> unfortunately --- it's not a very good name, since it doesn't give the
> variant, it gives the programme to run to pick the variant.  Of course
> it could be set to a function that simply returns the type, but that
> method doesn't have a sensible default.

I just checked this again and _pick_variant doesn't use `variant' as a
style. It sets the tag name to `variant' when looking up the `command'
style. So the `variant' style is not already in use.

Oliver



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