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)
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 https://github.com/filiparag/wikiman
or I also use Television for fuzzy finding and then opening the pages in bat with man.
@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 Looks like a nice tui version of xman, which is one of my favorite guis.
@b0rk batman from bat ?
@b0rk I guess there's gnu's `info`... And of course each `man` implementation is different; I'm partial to openbsd's, but it is the antithesis of fancy.
@b0rk there are too many to list. `yelp` (Gnome Help) comes to mind. `tldr` is a different approach. Then there are "smart" terminals, integrations, and a host of other things all trying to help us execute commands properly.
@b0rk I use man with MANPAGER set to `less -ic --use-color -Dd+g -Duc`. Not super fancy, but has a few colors.
@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.
@b0rk related but maybe outside of the scope of your question: I have tried to fire woman (mode from emacs) once. But it wasn't as straightforward as thought and I didn't dig further. As I spent more and more time in emacs, I used woman directly and had less need to implement the "trick".
The reason, because there is one except for using emacs itself 😉 is to have the ability to see and navigate the page with a menu and perform search, and filters with tools like Occur that I'm familiar with.
@b0rk I've been using tldr pages instead of man recently: https://github.com/tldr-pages/tldr-python-client?tab=readme-ov-file
Works pretty well and looks nice!
@b0rk there's a script to use bat for man pages (aptly called batman) https://github.com/eth-p/bat-extras, for syntax highlighting and some other stuff
@b0rk have routinely lamented the fact that there isn't a version called woman
@b0rk man $1 | lolcat
Fancy ✨️
@b0rk You can read them with bat using batman. Only mildy fancy, though.
@b0rk May be some stuff worth trying here: https://alternativeto.net/software/linux-man-pages/ (Full disclosure--just found the article--I haven't tried the alternatives.)
@b0rk There used to be pman (symlink to the lynx-based info viewer pinfo) back in the day.
@b0rk what would fancy look like? There's a manpage browser in Emacs which IIRC does hyperlinking, but that is as fancy as I've seen it get