by klodolph · 2y ago · 0 comments
The thing is—GNU is right here, that info is better. You can run info from the command-line just like man, except info pages are hierarchical, indexed, and have links. The same sources can then be used to generate web pages. You then have one set of docs you update, which are accessible both from the web and from the terminal. The system can handle large projects and it’s easy to navigate—much easier than man. It’s beautiful.
Man, by comparison, gives you individual pages. I think that’s great when you need to stare at the docs for an individual API call for a while, like when you read “man mmap” or something, but it sucks for large projects. You can convert man pages to web pages but it’s not competitive with info.
Try running “info gcc” or “info make” at some point and you’ll see something beautiful. You can browse linearly using space/backspace, and Q to quit. You can do a text search across the whole manual, you can follow links, etc.
I find this system good enough that when it’s available, I don’t use the web browser to look up docs for stuff like GCC or Make.
`pinfo` was a browser that supported browsing like elinks, and the keybindings were similar enough that I could effectively navigate it when needed.
However, IMHO, as nice and organized as the info pages were, every modern console I found myself using, when in the terminal, when I needed to use man or info, I really just wanted a a summary of all the command line options, that I could grep on, in one big list. info pages tended to offer logical subsections, that required more interaction + more careful reading to get to the piece of info you were after, which ended up using more time to plow through to a solution.
In info, I can find this information a lot faster.
My experience was, with 1 or 2 exceptions, that the info was the same as the manpage. And navigating info pages is "challenging".
Maybe it was just the keybindings, maybe it was something about the screen layout and navigation hints (lack of maybe). I can't say precisely what was so wrong, and have no interest in even trying nor need to.
If it was so great, no one would need to try to convince anyone of anything. I'd have just used it in prefference because it was better at getting the info I wanted to me.
Ctrl-S starts an I-search, instead of /. You then start typing what you want to search for. The results immediately appear; you don’t have to press enter. This will search across the docs for an entire project—with man, you may have to dig around with apropos first to find what you are looking for.
You can then hit Ctrl-S again to go to the next search occurrence, hit enter to stay where you are and exit the search, or Ctrl-G to exit the search and go back to where you started.
That's a big if. And I'm not going to learn to navigate an emacs system for a few utilities that I don't use much when everything that I do care about is on man.
You’d equally not learn how to navigate Javadoc if you don’t write Java code. Seems pretty obvious to me.
I get that info is a little easier if you are used to Emacs keybindings. But if you use info, you’d mostly just use space / backspace, ctrl-s for search, m for menu, and u for up. It’s not a lot of keybindings that you’re probably going to end up using. Yeah, info has M-x, but who ever uses it? Everyone who used man for the first time had to learn those keybindings too.
info <whatever> | less
You're welcome.Hierarchies aren't All That. The case for hierarchies only makes sense when the ontology is familiar to the user[1]. Without knowing the info hierarchy it's impossible to navigate. Why, for example, are the gnupg info pages under 'GNU Utilities', wget under 'Network applications', and things like rm and mkdir under 'Individual utilities' (a long with dozens of other things)?
1. https://web.archive.org/web/20070119210402/http://www.shirky...
Within the gnupg manual you can look at a section like “key management commands” or something like that. There are a lot of different commands in gnupg, it’s nice to have a separate page for each, and be able to browse.
By comparison, the OpenSSL docs are man pages, and it kinda sucks to browse the OpenSSL docs. (I’m gonna say, categorically, that both OpenSSL and GnuPG have bad UX. It kinda sucks to figure out what you’re doing in either case, but at least the GnuPG manual is easier to read.)
(I’ve learned vim in the meantime, but just avoided info for the last 10+ years)
GNU might not be unix, but alas worse is still better.
I love info pages. I spent many hours trying to convert documentation I use into info pages or something like info (but failed, as info has more metadata than those sources).
Sure enough I’m using Emacs but navigating through any documentation in info form is a very positive experience, especially in comparison to a documentation in HTML form that has many issues (especially since interactivity for search etc. is inconsistent and likes to break)
I guess I'm one of today's lucky 10,000. [1]
I'm tempted to make my tools do something similar. On Windows too.