zsh-users
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Perry Smith <pedz@easesoftware.com>
Cc: Chris Nebel <c.nebel@mac.com>, zsh-users@zsh.org
Subject: Re: zsh built in help features
Date: Fri, 18 Oct 2019 10:25:33 -0500	[thread overview]
Message-ID: <B5326121-5F47-444F-AEA8-D03177DF4334@dana.is> (raw)
In-Reply-To: <33AAF538-777B-4BA3-8587-6DFF7CAE48FC@easesoftware.com>

On 18 Oct 2019, at 07:11, Perry Smith <pedz@easesoftware.com> wrote:
> I had found the _run-help script (is that what they are called?) and
> found that HELPDIR needed to be set but then it does an
> anonymous function with magic I don’t yet understand and
> finally falls back to _man.

The functions prefixed with _ are completion functions. The files for the
functions themselves are located elsewhere. To find one you can either run
`whence -v` on it (but it must be loaded first), or do something like the
following:

  # Print matching file paths
  print -rl - $^fpath/**/run-help(N)

  # Print contents of matching files
  cat -- $^fpath/**/run-help(N)

(whence/which/where can also print the contents, but again only after the
function is loaded, and they will strip all of the comments and formatting)

dana


      reply	other threads:[~2019-10-18 15:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-17 22:54 Perry Smith
2019-10-17 23:48 ` Pier Paolo Grassi
2019-10-17 23:54   ` Chris Nebel
2019-10-18  0:28     ` Perry Smith
2019-10-18  5:12       ` dana
2019-10-18 12:11         ` Perry Smith
2019-10-18 15:25           ` dana [this message]

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=B5326121-5F47-444F-AEA8-D03177DF4334@dana.is \
    --to=dana@dana.is \
    --cc=c.nebel@mac.com \
    --cc=pedz@easesoftware.com \
    --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).