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

RE: _man igores global matchers



>
> 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?
>

Is it possible just use _path_files?

for i in $manpath; do
_path_files -W $i '*.(bz2|z|gz|Z).<->*'
done

or like? Alternatively, it is nice having _path_files to support -O/-A
flags. Was it not discussed somewhere?

-andrej



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