From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21649 invoked by alias); 12 Dec 2016 08:40:42 -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: 22199 Received: (qmail 19718 invoked from network); 12 Dec 2016 08:40:42 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(-0.7/5.0):. Processed in 1.399628 secs); 12 Dec 2016 08:40:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=9scNchMWXDa3hbnrkP93kAPZbyY=; b=CzvXlQTCdR1gw60leTL3A 7G3xGVoQCUhcIarButzJTh77Aix4vRdrjWOUGd4pEOoxG3zQ/KVli3hhmu3cRT2s kr71Dc/tCec+l3fsTkn3ucUGtFmh3SvkZ7TQL4UpcevLT4RT9xsoRe5eYPLJaP+e 0yIdDFVHaivD4YREaUDWTQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=9scNchMWXDa3hbnrkP93kAPZbyY=; b=U3M3UorwhGQ/AYZfnXQZ O63OlNnH2jvgt9SXBCreBE1XqeQfh0La8vWRcS/ETbGw6bbDoNGKcAVsgV7afKXk JVag8frc0z8rV0dS3nvU8M4mi+OlJgmb3K6gik0XW6GUt//PhqtsWCcPnkAOF7t0 0D+fJ0NlY4xaN0ftgqPb/Zk= X-ME-Sender: X-Sasl-enc: uUKZxCGCdrWyDpEO12dzN4l1iKHYie+BkT8ZhzeekKnQ 1481532033 Date: Mon, 12 Dec 2016 08:37:42 +0000 From: Daniel Shahaf To: Ray Andrews Cc: zsh-users@zsh.org Subject: Re: zsh-5.2-test-3 Message-ID: <20161212083742.GA11457@fujitsu.shahaf.local2> References: <20161209095729.2033b5be@pwslap01u.europe.root.pri> <20161209195457.27e43234@ntlworld.com> <584CB4EF.6070904@eastlink.ca> <584CCC14.10701@eastlink.ca> <20161211171559.322b58fc@ntlworld.com> <584D9809.4070805@eastlink.ca> <161211112327.ZM30304@torch.brasslantern.com> <584DB4BA.4050802@eastlink.ca> <161211154559.ZM30830@torch.brasslantern.com> <584DF7A1.6010906__17132.6343705461$1481504750$gmane$org@eastlink.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <584DF7A1.6010906__17132.6343705461$1481504750$gmane$org@eastlink.ca> User-Agent: Mutt/1.5.23 (2014-03-12) Ray Andrews wrote on Sun, Dec 11, 2016 at 17:04:33 -0800: > Yeah, did that now and it takes me to the right man page, but doesn't > search within it for the command -- if that's even to be expected. > I've often wondered if 'man' has some search that is specific to the > command headings within one of those large files like zshcontrib. > When the command is a common word, like 'test' one sees it dozens of > times in plain text before one gets to the command itself. Two optiosn: 1) Use regular expressions. Assuming your $PAGER is 'less': man zshall /^ *test [that's slash, caret, space, asterisk, etc — type it exactly so] will find instance of 'test' on beginning of line, only. Then `n' to go to the next match. Sidebar: I use MANOPT='--nh --nj' to inhibit hyphenation in manpages, which is useful when grepping for words that would otherwise have straddled a end-of-line hyphen. (I also use MANWIDTH=80, but that's a matter of preference.) 2) Use the HTML or PDF manual, which have indices at the end. Looking up `test' in the index will jump you to the right place.