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

Re: PATCH: Re: sudo completion problem



Tanaka Akira wrote:

> ...
> 
> My idea is already implemented: _regex_arguments.  Although currently
> there are only three completion functions - _apt, _xwit and _xset -
> which use _regex_arguments because it cannot use _arguments,  I think
> there are more completion  functions which can be written bit more
> simple if _regex_arguments is used.  Maybe, _xauth (and _cvs?).

Personally I find _arguments a whole lot more readable than
_regex_arguments. If that could be improved, I'd be glad.

Although I always wonder why people find _cvs difficult...

> ...
> 
> > And I'd like repeat once more - currently, when _arguments is using
> > lexical structure to describe semantic, it is hard to add something. If
> > we had flags ... (not suggesting breaking compatibility - but just for
> > future use).
> 
> _regex_arguments handle only parsing of arguments.  So other stuff
> handled by _arguments such as descriptions, exclusive options must be
> implemented by completion function writer.  It's bit hard task but we
> can implement special feature easily.

I would be *very* glad if _regex_arguments could at least handle the
tags, tag-labels and descriptions. I had lots of problems trying to
work those changes into the functions using _regex_arguments and since 
I don't know any of those commands I still don't know if I've got it
right.

Either in _regex_arguments or in a convenience wrapper function around 
it, of course.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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