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

Re: Completion issues



Peter Stephenson wrote:

> > > Another thing:  I couldn't get matcher-list to work for a labelled
> > > completer, e.g. _complete:-extended.
> 
> This seems to work this time.  Don't what I did wrong.  So what's the
> difference between matcher and matcher-list now?  The latter is looked up
> once for a completer (but again if we have a labelled completer), but the
> latter is looked up every single time we add a match?

Two main differences:

1) matcher is tested for the most specific contexts possible,
   including the tags, matcher-list, as you said, only for the
   completer

2) matcher-list uses its values on after another (there is a loop),
   matcher uses all its values in one go

But, yes, with completer-labelling one could replace matcher-list with 
a couple of matcher styles settings. Exactly because of that `couple of'
I kept matcher-list -- it's so much more convenient.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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