Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: _man igores global matchers
- X-seq: zsh-workers 14609
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: <zsh-workers@xxxxxxxxxx>
- Subject: RE: _man igores global matchers
- Date: Thu, 31 May 2001 17:32:13 +0400
- Importance: Normal
- In-reply-to: <200105291218.OAA09076@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
> 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