Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Few newbie questions..
- X-seq: zsh-workers 15674
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Few newbie questions..
- Date: Tue, 21 Aug 2001 17:58:36 +0000
- In-reply-to: <1010821063843.ZM20952@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <001501c12a0a$564ed110$21c9ca95@xxxxxxxxxxxxxx> <1010821063843.ZM20952@xxxxxxxxxxxxxxxxxxxxxxx>
On Aug 21, I wrote:
}
} Index: Completion/Unix/Command/_man
} + if [[ $sect = (<->*|1M|l|n) || $sect = \((*\|*)\) ]]; then
I just noticed that this means that
zsh% man l<TAB>
won't complete what you expect, because it tries to complete manual pages
in section `l' that begin with `l'. (This is not new with my patch.)
This means we should do something different when CURRENT==2, but I'm not
sure exactly what. The easiest change is probably to replace
+ else
+ sect=$words[2]
with
+ elif ((CURRENT > 2))
+ sect=$words[2]
but perhaps we should actually offer to complete section numbers?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author