From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13330 invoked by alias); 11 Feb 2015 17:02:22 -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: 19856 Received: (qmail 5006 invoked from network); 11 Feb 2015 17:02:08 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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= X-Sasl-enc: KVOLRWngr9W5NjDbq3r7IG8DlOmCh4j6wNu1mMzTW8ZQ 1423674126 Date: Wed, 11 Feb 2015 17:02:03 +0000 From: Daniel Shahaf To: =?utf-8?B?xLBzbWFpbCBEw7ZubWV6?= Cc: =?iso-8859-1?Q?Ren=E9?= Neumann , Zsh Users Subject: Re: How to link to zsh manual section? Message-ID: <20150211170203.GB5230@tarsus.local2> References: <87386g8cm6.fsf@gmail.com> <54D8BBAC.2000405@necoro.eu> <54DB4F5B.6070807@necoro.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) İ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 wrote: > > 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. > > 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