aitjcize / cppman

C++ 98/11/14 manual pages for Linux/MacOS
GNU General Public License v3.0
1.27k stars 79 forks source link

No links in man pages accessed through `man` #130

Open ton opened 2 years ago

ton commented 2 years ago

I would like to read the C++ man pages using the standard man command. So I ran cppman -m true, and after that I can access the man pages (after having created ~/.manpath which seems to be necessary). There is a problem though where no links are visible in the man pages when accessed through man instead of cppman. For example for std::vector this is what I get after cppman std::vector:

image

and the same page after man std::vector:

image

Note that all links are missing in the latter case. Is this known behavior, some issue on my side, or a bug? I am using Neovim as my man pager using: MANPAGER=/bin/sh -c "col -b | nvim -c 'set ft=man ts=8 nomod nolist nonu noma' -". Other man pages do show links. This is using cppman 0.5.3.

ton commented 2 years ago

I am looking into this, and it seems this works the way it works because of the cppman.vim plugin being source by cppman. So this can be solved locally, I will research the required MANPAGER setting to get consistent results, and still be able to view non-cpp man pages correctly.