From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16862 invoked by alias); 11 Feb 2015 12:47:36 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19851 Received: (qmail 12441 invoked from network); 11 Feb 2015 12:47:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Message-ID: <54DB4F5B.6070807@necoro.eu> Date: Wed, 11 Feb 2015 13:47:23 +0100 From: =?UTF-8?B?UmVuw6kgTmV1bWFubg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Re: How to link to zsh manual section? References: <87386g8cm6.fsf@gmail.com> <54D8BBAC.2000405@necoro.eu> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Am 11.02.2015 um 13:26 schrieb İsmail Dönmez: > Hi, > > On Mon, Feb 9, 2015 at 3:52 PM, René Neumann wrote: >> Am 08.02.2015 um 19:46 schrieb Christian Neukirchen: >>> zzapper 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. 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) - René