Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: PATCH: _info completion
- X-seq: zsh-workers 17160
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "'Zsh hackers list'" <zsh-workers@xxxxxxxxxx>
- Subject: RE: PATCH: _info completion
- Date: Tue, 14 May 2002 20:37:57 +0400
- Importance: Normal
- In-reply-to: <20020514162058.GA31151@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
> > 4 lines of parameter substitution is daunting but it tries to parse
> > three different line entry formats with on regexp and also account
for
> > subtle differences in formatting I have encountered. Suggestions how
to
> > simplify it are gratefully accepted :-)
>
> I'm impressed. I thought about doing this some while ago and decided
> that it was just more hassle than it was worth, even with info -o.
> I haven't yet tried to understand the substitution yet either.
>
Actually it is quite simple. It takes info -o - output, cuts off
evrything after "--- Detailed Node Listing ---" (which sometimes has
spaces around sometimes not) then gets all lines "* xxx" except "*
Menu:" and then tries to extract node names and descriptions, where
lines match one of
* Node: (file)section. Description - top level dir
* Node:: Description - normal menu
* Node: section - index
(I think listing sections for index entries makes sense; if not it can
already be simplified :-)
nothing really exciting.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author