zsh-users
 help / color / mirror / code / Atom feed
* find help
@ 2022-10-04 18:52 Ray Andrews
  2022-10-04 19:20 ` Pier Paolo Grassi
  2022-10-04 21:15 ` René Neumann
  0 siblings, 2 replies; 8+ messages in thread
From: Ray Andrews @ 2022-10-04 18:52 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

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.


[-- Attachment #2: Type: text/html, Size: 695 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: find help
  2022-10-04 18:52 find help Ray Andrews
@ 2022-10-04 19:20 ` Pier Paolo Grassi
  2022-10-04 19:32   ` Ray Andrews
  2022-10-04 21:15 ` René Neumann
  1 sibling, 1 reply; 8+ messages in thread
From: Pier Paolo Grassi @ 2022-10-04 19:20 UTC (permalink / raw)
  To: Ray Andrews; +Cc: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

you should try typing
read (or any other command) than pressing alt-h, by default bound to the
run-help widget

Il giorno mar 4 ott 2022 alle 20:53 Ray Andrews <rayandrews@eastlink.ca> ha
scritto:

> 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.
>
>
> --
Pier Paolo Grassi

[-- Attachment #2: Type: text/html, Size: 1394 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: find help
  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
  0 siblings, 2 replies; 8+ messages in thread
From: Ray Andrews @ 2022-10-04 19:32 UTC (permalink / raw)
  To: zsh-users


On 2022-10-04 12:20, Pier Paolo Grassi wrote:
> you should try typing
> read (or any other command) than pressing alt-h, by default bound to 
> the run-help widget
>
I think something got lost when I switched to the 'official' Debian copy 
of zsh.  I do remember run-help being useful but it doesn't work now, it 
reports as being an alias of 'man'.  And somebody has stolen the alt-h 
key, I think xfce owns it now, it brings up a graphical box that shows 
me an 'about' for the xterm. Mind I can probably steal it back.  If I 
can get run-help useful again.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: find help
  2022-10-04 19:32   ` Ray Andrews
@ 2022-10-04 19:35     ` Roman Perepelitsa
  2022-10-04 19:35     ` Bart Schaefer
  1 sibling, 0 replies; 8+ messages in thread
From: Roman Perepelitsa @ 2022-10-04 19:35 UTC (permalink / raw)
  To: Ray Andrews; +Cc: zsh-users

On Tue, Oct 4, 2022 at 9:33 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
>
> On 2022-10-04 12:20, Pier Paolo Grassi wrote:
> > you should try typing
> > read (or any other command) than pressing alt-h, by default bound to
> > the run-help widget
> >
> I think something got lost when I switched to the 'official' Debian copy
> of zsh.  I do remember run-help being useful but it doesn't work now, it
> reports as being an alias of 'man'

Add this to .zshrc:

    autoload -Uz run-help

    if [[ -v aliases[run-help] ]]; then
     unalias run-help
    fi

Roman.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: find help
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Bart Schaefer @ 2022-10-04 19:35 UTC (permalink / raw)
  To: Ray Andrews; +Cc: zsh-users

You need
 unalias run-help
 autoload run-help
somewhere.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: find help
  2022-10-04 19:35     ` Bart Schaefer
@ 2022-10-04 20:51       ` Ray Andrews
  0 siblings, 0 replies; 8+ messages in thread
From: Ray Andrews @ 2022-10-04 20:51 UTC (permalink / raw)
  To: zsh-users


On 2022-10-04 12:35, Bart Schaefer wrote:
> You need
>   unalias run-help
>   autoload run-help
> somewhere.
>
Tried that, no action.  In my downloaded zsh I have:

.../functions/run-help

In Debian's version:

.../functions/Misc/run-help

... but running it (sourcing it) directly from there it seems to work fine.

Ah! ... what is it ... zsh's internal path, can't remember what it's 
called but it finds this sort of thing.  Maybe my configuration isn't 
set to find it in 'Misc' -- why would Debian decide to put things where 
zsh devs don't want them to be anyway? You guys know where you want 
things, why not leave it alone?






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: find help
  2022-10-04 18:52 find help Ray Andrews
  2022-10-04 19:20 ` Pier Paolo Grassi
@ 2022-10-04 21:15 ` René Neumann
  2022-10-04 22:40   ` Ray Andrews
  1 sibling, 1 reply; 8+ messages in thread
From: René Neumann @ 2022-10-04 21:15 UTC (permalink / raw)
  To: zsh-users

% 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.
> 
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: find help
  2022-10-04 21:15 ` René Neumann
@ 2022-10-04 22:40   ` Ray Andrews
  0 siblings, 0 replies; 8+ messages in thread
From: Ray Andrews @ 2022-10-04 22:40 UTC (permalink / raw)
  To: zsh-users


On 2022-10-04 14:15, René Neumann wrote:
> % which zman
> zman () {
>     PAGER="less -g -s '+/(?i)^       "$1"'" LANG= man zshall
> }
>
I'll play with that, thanks.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-04 22:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 18:52 find help 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
2022-10-04 22:40   ` Ray Andrews

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).