Hacker News new | ask | show | jobs
by halapro 106 days ago
I was never able to properly parse large man pages, I'm so happy that llms can now prepare half a usable command without spending an hour reading a time without a single usage example.
2 comments

What I usually do when I have to read large man pages like bash(1) is I read them as PDFs:

man -Tpdf bash | zathura -

Replace zathura with any PDF viewer reading from stdin or just save the PDF. Hope that can be useful to someone!

my manpager is `vim -`, can't beat that
You probably can — by using neovim:

https://wiki.archlinux.org/title/Neovim#Use_as_a_pager

https://neovim.io/doc/user/filetype/#_man

I've also been running (neo)vim as a manpager. You get the same features as with vim (like easily copying text or opening referenced files/other manpages without using the mouse), but neovim also parses the page and creates a table of contents, which can be used for navigation within the page. It doesn't always work perfectly, but is usually better than nothing.

`tldr` is also great. It's essentially a collection of example invocations of *nix commands.
TIL that what I have wanted in manpages for years exists. Thank you!
tldr is so good, i wish it was a part of the os the same way manpages are just to help out newcomers