Skip to content

support MANPAGER as pager#195

Merged
aitjcize merged 1 commit into
aitjcize:mainfrom
Folling:feature/manpager-as-pager
Jun 7, 2026
Merged

support MANPAGER as pager#195
aitjcize merged 1 commit into
aitjcize:mainfrom
Folling:feature/manpager-as-pager

Conversation

@Folling
Copy link
Copy Markdown
Contributor

@Folling Folling commented May 27, 2026

man supports using a different pager than the rest of the system via the $MANPAGER envvar. This is useful for pagers like bat or neovim that require certain man-specific flags (export MANPAGER='nvim +Man!' for nvim).

this PR adds the option to set -p mansystem (name can be seen as a draft, I'm open to suggestions) which makes cppman use MANPAGER instead of PAGER.

I have run both test.py and ./bin/cppman to verify this PR works.

@aitjcize aitjcize merged commit 12ddcb9 into aitjcize:main Jun 7, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants