i feel like i've probably asked this before but has anyone written a fancy command line man page viewer to replace `man`?
-
@krans i'm happy for emacs users but I am never going to use emacs so no

-
@b0rk Ugggggh if you find a good answer, please repost it with a bright red light. I think the biggest issue is that the roff format is too bankrupt, and we need better linking primitives, but… I might just be jaded.
-
i feel like i've probably asked this before but has anyone written a fancy command line man page viewer to replace `man`?
(not emacs or vim)
@b0rk batman from bat ?
-
@aerique @b0rk A tool that consumes roff will (I believe) never be good. (We could change roff but no.) We want a tool that reads something better and can fall back to roff. We can't convert roff-to-gooddoc.
Texinfo was meant to be that, but (I would say) failed. A subset of HTML could replace it. (And Texinfo can compile to HTML.) You'd then want a tool that know how to find the html for a given command/name.
It's "easy" except for the xkcd 927 problem. Sorry, this is not constructive.
-
@doekman it's so nice! my dream is that somehow someone has made something like that for the terminal
-
@aerique @b0rk A tool that consumes roff will (I believe) never be good. (We could change roff but no.) We want a tool that reads something better and can fall back to roff. We can't convert roff-to-gooddoc.
Texinfo was meant to be that, but (I would say) failed. A subset of HTML could replace it. (And Texinfo can compile to HTML.) You'd then want a tool that know how to find the html for a given command/name.
It's "easy" except for the xkcd 927 problem. Sorry, this is not constructive.
-
i feel like i've probably asked this before but has anyone written a fancy command line man page viewer to replace `man`?
(not emacs or vim)
qman looks interesting but on my machine it takes several seconds to start https://github.com/plp13/qman
-
i feel like i've probably asked this before but has anyone written a fancy command line man page viewer to replace `man`?
(not emacs or vim)
@b0rk I use [bat](https://github.com/sharkdp/bat) with this env var `export MANPAGER="sh -c 'col -bx | bat --language man --plain'"`
This look like this. -
qman looks interesting but on my machine it takes several seconds to start https://github.com/plp13/qman
@b0rk Appears to be coded in C. Perhaps it is a good target for re-implementation in Rust or Go?
-
qman looks interesting but on my machine it takes several seconds to start https://github.com/plp13/qman
@b0rk Looks like a nice tui version of xman, which is one of my favorite guis.
-
@b0rk there's GNU `info` but I think you were probably asking about *good* ones

@SnoopJ @b0rk also pinfo ( https://github.com/baszoetekouw/pinfo ), which is at least different.
-
i feel like i've probably asked this before but has anyone written a fancy command line man page viewer to replace `man`?
(not emacs or vim)
@b0rk https://github.com/filiparag/wikiman
or I also use Television for fuzzy finding and then opening the pages in bat with man. -
i feel like i've probably asked this before but has anyone written a fancy command line man page viewer to replace `man`?
(not emacs or vim)
@b0rk Maybe something like manx? It's for macOS but it is just a bash script so maybe it could be tweaked for other platforms.
-
@b0rk Ugggggh if you find a good answer, please repost it with a bright red light. I think the biggest issue is that the roff format is too bankrupt, and we need better linking primitives, but… I might just be jaded.
-
i feel like i've probably asked this before but has anyone written a fancy command line man page viewer to replace `man`?
(not emacs or vim)
@b0rk Not replace, but this script opens in a PDF viewer:
https://www.softwolves.com/wolfblog/2024/11/19/making-man-pages-easier-to-read/
I did write a simple HTML man page render back at university (1997), I wonder if I still have the sources for that...
-
i feel like i've probably asked this before but has anyone written a fancy command line man page viewer to replace `man`?
(not emacs or vim)
@b0rk tangent: I've been using Linux for 27 years but I'm still unclear on why sometimes typing "man 5 {command}" gives me a different and more detailed man page.
-
@b0rk tangent: I've been using Linux for 27 years but I'm still unclear on why sometimes typing "man 5 {command}" gives me a different and more detailed man page.
@b0rk (now I know the answer)
-
@b0rk (now I know the answer)
@literatesavant what's the answer?
-
@doekman it's so nice! my dream is that somehow someone has made something like that for the terminal
@b0rk It is, right? FWIW: sometimes I use this function to open a man-page: it opens a new terminal window.
function yman() { open "x-man-page://$1" ; }
-
@literatesavant what's the answer?
@b0rk there are 8 "sections" of the man page. I thought they were "levels."
1: user commands
2: system calls
3: library functions
4: special files (devices and stuff)
5: file formats
6: games!
7: miscellaneous
8: system admin commandsSo if you run "man crontab" you will see the crontab command arguments, and if you run "man 5 crontab" you will see the crontab file format.