zsh-users
 help / color / mirror / code / Atom feed
From: "René Neumann" <lists@necoro.eu>
To: zsh-users@zsh.org
Subject: Re: find help
Date: Tue, 4 Oct 2022 23:15:47 +0200	[thread overview]
Message-ID: <b7f05403-b4fb-0869-5737-a305854b5e59@necoro.eu> (raw)
In-Reply-To: <8516c65c-22ed-f4d8-54d3-c89959e84bbb@eastlink.ca>

% which zman
zman () {
	PAGER="less -g -s '+/(?i)^       "$1"'" LANG= man zshall
}

I, personally, don't find read-help that useful (which is suggested in 
the other branch of this tread).
Try `run-help run-help` which says that there is nothing to be found, 
whereas `zman run-help` shows me what I need :)

- René

Am 04.10.22 um 20:52 schrieb Ray Andrews:
> I just figured out how to do this:
> 
> $ zhelp() { man zshbuiltins | less -p "^       $1" }
> 
> $ zhelp read
> 
>       read [ -rszpqAclneE ] [ -t [ num ] ] [ -k [ num ] ] [ -d delim ]
>              [ -u n ] [ name[?prompt] ] [ name ...  ]
>       ....
> 
> ... simple and effective, but I'll bet someone has something better.
> 
> 


  parent reply	other threads:[~2022-10-04 21:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 18:52 Ray Andrews
2022-10-04 19:20 ` Pier Paolo Grassi
2022-10-04 19:32   ` Ray Andrews
2022-10-04 19:35     ` Roman Perepelitsa
2022-10-04 19:35     ` Bart Schaefer
2022-10-04 20:51       ` Ray Andrews
2022-10-04 21:15 ` René Neumann [this message]
2022-10-04 22:40   ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b7f05403-b4fb-0869-5737-a305854b5e59@necoro.eu \
    --to=lists@necoro.eu \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).