3 ms·
Interesting! I never thought about the issue being the reader treating it as just strings and making that an ill-fit for the problem domain. My bugbear with ma
by shadowgovt 2y ago
Interesting! I never thought about the issue being the reader treating it as just strings and making that an ill-fit for the problem domain.
My bugbear with man is that the only way to find a particular flag is via string search, so if I want to find out what "-c" does I'm going to bounce off of every hyphenated word starting with "c" in the file. Turns out `mdoc` makes it extremely easy to find those flags (they're all `.It Fl <whatever>` macros), but by the time it gets all the way to `less` that detail has been squeezed right out of the file.
Emacs manpage display is like 90% of the way there but lacks a function to "find flag in file;" I should look into how hard that would be to hack in.
- bentley 2y agoOn systems that use the mandoc implementation of the man(1) command, these semantics are preserved and accessible from within less(1). See my other comment: https://news.ycombinator.com/item?id=43634894 https://news.ycombinator.com/item?id=43634894