Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to link to zsh manual section?
- X-seq: zsh-users 19856
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: İsmail Dönmez <ismail@xxxxxxxxx>
- Subject: Re: How to link to zsh manual section?
- Date: Wed, 11 Feb 2015 17:02:03 +0000
- Cc: René Neumann <lists@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=x-sasl-enc:date:from:to:cc:subject :message-id:references:mime-version:content-type :content-transfer-encoding:in-reply-to; s=mesmtp; bh=7FQUVPNhPJq Qi7RjXjJ3pypn6eY=; b=aBGr3sSXf0eDgXXS16p9fPvnGJ06b68VaJvyuWnS+ms c6DHVZdCOGBzUhjFzfETgUKD1qnjniOvRML6zQ1g6CM8NpvEvNmUZP4h7vQgmsjF fU5e1LyWUKHvDfh1hrf+sr8zH3damE0tptibQh22JJ26pRYT0FpJxeXly7D41tKw =
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:date:from:to:cc:subject :message-id:references:mime-version:content-type :content-transfer-encoding:in-reply-to; s=smtpout; bh=7FQUVPNhPJ qQi7RjXjJ3pypn6eY=; b=q3eW6wUFhg7+KntZ5Ha4iT/AGyeIQ/MZ3h4PQwMHr+ Fy6Iy/IO6tt4gKJOxGrkYwFJBaeu5XOYWcXuyeJiIL4pHyKBkJ7164V3ZLXAxCH4 McyRJWv+e1GYmZ/zg8uIgfW1BlsyrYrb+dzrOMfKZk5vdeOC7NJjJ7ndRKYAkgyO o=
- In-reply-to: <CAJ1KOAj0LMuppOOyeUk8sLRKz44WvjKjHFkg4q-1SRDxq5i-=g@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA439EDE5777Ddavidrayninfocouk@80.91.229.13> <87386g8cm6.fsf@gmail.com> <54D8BBAC.2000405@necoro.eu> <CAJ1KOAg6RKkbERaAH2LzcKX9tyxNykOBrqqKKcof3rHq7NXGhg@mail.gmail.com> <54DB4F5B.6070807@necoro.eu> <CAJ1KOAj0LMuppOOyeUk8sLRKz44WvjKjHFkg4q-1SRDxq5i-=g@mail.gmail.com>
İsmail Dönmez wrote on Wed, Feb 11, 2015 at 14:50:14 +0200:
> On Wed, Feb 11, 2015 at 2:47 PM, René Neumann <lists@xxxxxxxxx> wrote:
> > Am 11.02.2015 um 13:26 schrieb İsmail Dönmez:
> >> Hi,
> >>
> >> On Mon, Feb 9, 2015 at 3:52 PM, René Neumann <lists@xxxxxxxxx> wrote:
> >>> Am 08.02.2015 um 19:46 schrieb Christian Neukirchen:
> >>>> zzapper <david@xxxxxxxxxxxxxx> writes:
> >>>>
> >>>>> A few tips on negotiating the zsh manuals please
> >>>>>
> >>>>> man zshall etc
> >>>>
> >>>> # zman -- easier browsing of zsh manpage
> >>>> # 20sep2011 +chris+
> >>>> zman() {
> >>>> PAGER="less -g -s '+/^ "$1"'" man zshall
> >>>> }
> >>>>
> >>>> In doubt, press "n" a few times for the next results.
> >>>>
> >>>
> >>> Nice idea! One could enhance it a little (depending on one's preference,
> >>> of course) by inserting (?i) into the search string, resulting in
> >>> case-independent search.
> >>>
> >>> -> PAGER="less -g -s '+/(?i)^ "$1"'" man zshall
> >>
> >> This gives an "Invalid pattern" error here.
> >
Try adding the -i flag to the 'less' invocation, and removing the (?i).
> > Hmm, is your installation of 'less' using a regex library other than
> > pcre? (Because the less manpage says, that the regex may be anything the
> > underlying lib supports, and with libpcre-8.35 this works)
>
> That explains it, mine is not linking to pcre. However looks like even
> without ?i syntax it works case-independent.
Usually, less is case-sensitive unless the -i command-line flag is
passed (or applied interactively).
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author