Elvish: No man pages

Created on 8 Dec 2018  路  3Comments  路  Source: elves/elvish

As far as I can tell Elvish doesn't ship with man pages for the shell or it's builtins

Most helpful comment

It'd be incredible to have documentation you can quickly pull up right from the elvish shell -- it'd make it much quicker to learn the language. I'd be happy to help render the existing documentation to man pages if that's the right approach for elvish.

(fish, emacs, and ipython all handle this well, tho in very different ways)

All 3 comments

No manual pages, but the documentation at https://elv.sh/ref/ is top notch. I usually just look things up there. However, as the sources are in Markdown, it should be possible to render it in man page format fairly easily.

It'd be incredible to have documentation you can quickly pull up right from the elvish shell -- it'd make it much quicker to learn the language. I'd be happy to help render the existing documentation to man pages if that's the right approach for elvish.

(fish, emacs, and ipython all handle this well, tho in very different ways)

With respect to @jtmoulia's comment I'll point out that fish has a man function that prefaces the directory containing the man pages for its builtins to the $MANPATH env var before invoking the real man command. It is a borderline trivial function that depends on little more than the fish man pages being in a predictable location embedded in the fish binary at build time; i.e., set -l fish_manpath (dirname $__fish_datadir)/fish/man. Where $__fish_datadir is a semi-private builtin var. Elvish shouldn't, obviously, do it exactly the same way. The point is that by using a similar model it is not only possible to support man elvish but also man count and man other-random-builtin when typed in an elvish REPL session. How to extend this to extensions provided by epm is TBD.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kalikiana picture kalikiana  路  8Comments

bpinto picture bpinto  路  5Comments

krader1961 picture krader1961  路  4Comments

notramo picture notramo  路  6Comments

aeosynth picture aeosynth  路  4Comments