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

Re: zstyle for _arguments feature request

Felix Rosencrantz wrote:
> I sent message workers/15664 back in August, but there was no response.
> I was asking two things:
>  * a feature request that would make it possible to override/edit the
>    action field of an _arguments specification via zstyle.  For example in

Yes, this could be useful. The form in which I'd like to see it in is a
more general version of the fake-files and fake-parameters styles and
available in all contexts as opposed to just in _arguments.

>    _find the -fstype flag spec is missing ext2 used by linux:
>     '*-fstype:filesystem type:(ufs 4.2 4.3 nfs tmp mfs S51K S52K)' \

In the case of this specific issue, should we maybe factor the
filesystem completion out of _mount into a new _filesystems that can
also be used here? 

>    It seemed that this would be a new use for zstyle, and people might
>    have some comments wrt using zstyle to define the completion rather
>    than just modifying the behavior of completion.

We should be careful how we document this. It should be a way of
tweaking available completions to fake extra matches and should not be
a substitute for writing functions.

>  * A completer for printf format strings using the "%" string.  I think
>    the real benefit would be the ability to see documentation for
>    the different format characters.

Yes it would be useful but perhaps a little messy to implement. I
thought about doing printf completion for printf as opposed to find
which is less useful. I suspect that this might be a good place to use
_regex_arguments but I've yet to look in any detail.


This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit

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