Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS man pager issues #645

Closed
zackhsi opened this issue Sep 3, 2019 · 8 comments
Closed

macOS man pager issues #645

zackhsi opened this issue Sep 3, 2019 · 8 comments

Comments

@zackhsi
Copy link

zackhsi commented Sep 3, 2019

Hello, I've configured MANPAGER according to the README, but do not see the expected results.

image

Separately, the man pages from coreutils (installed via brew, configured via export MANPATH=/usr/local/opt/coreutils/libexec/gnuman:$MANPATH) are incompatible with the bat as MANPAGER.

man 2 select is not available in coreutils, so I've used man dirname in the following screenshot:

image

Thanks for the project!

@sharkdp
Copy link
Owner

sharkdp commented Sep 3, 2019

The result in screenshots do not look too bad, IMO. It could be just the bat syntax highlighting theme which does not support all of the colorizations I've chosen (which could certainly be improved). Which theme are you using? Could you try to select a different one?

@sharkdp
Copy link
Owner

sharkdp commented Oct 29, 2019

@zackhsi any update on this? I'm going to close it, but happy to reopen if it is not resolved.

@sharkdp sharkdp closed this as completed Oct 29, 2019
@sharkdp
Copy link
Owner

sharkdp commented Oct 29, 2019

a few improvements were made to the man-pager README section, so it might be worth to have a second look.

@zackhsi
Copy link
Author

zackhsi commented Oct 30, 2019

@sharkdp thanks for the README updates.

I believe my trouble is supporting both the macOS and coreutils syntaxes (brew install coreutils). While I'm able to get the ~same highlighting for the macOS manpages, the bat-based highlighting for coreutils pages is not quite as good as other solutions.

Thanks for the excellent tool -- I use it extensively :)

@sharkdp
Copy link
Owner

sharkdp commented Oct 30, 2019

If you think there is anything specific that we could fix, please let us know. Have you tried to set MANROFFOPT="-c"?

@zackhsi
Copy link
Author

zackhsi commented Oct 31, 2019

Yep, I've set MANROFFOPT.

Here's what the macOS man page for select looks like. The code bits look OK, but I expect the section headers to stand out, and for things like FD_ISSET to be colored consistently.

image

@sharkdp
Copy link
Owner

sharkdp commented Nov 4, 2019

The code bits look OK, but I expect the section headers to stand out

I think this is a problem with the "TwoDark" theme. Could you please try a different theme (e.g. "Monokai Extended" or "Dracula").

and for things like FD_ISSET to be colored consistently.

I think that's an actual problem with the highlighting. It would be great if you could open a new ticket for this.

@sharkdp
Copy link
Owner

sharkdp commented Nov 4, 2019

and for things like FD_ISSET to be colored consistently.

I think that's an actual problem with the highlighting. It would be great if you could open a new ticket for this.

Should be fixed with #718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants