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

Re: _man igores global matchers



Andrej Borsenkow wrote:

> I am not sure, where to put it in; I was under impression that _wanted does
> it automagically?

Look at _man, you'll see things like:

  rep=( $manpath/(sman|man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.*(:t) )

I.e., it does its matching/filtering itself, before the completion code
has a chance to use any match specs.

That's ugly.  But caching could be pretty costly.  Maybe we should make
it configurable, mentioning the problem with match specs?

Any other ideas, anyone?


Bye
  Sven


-- 
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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