bat-extras icon indicating copy to clipboard operation
bat-extras copied to clipboard

batman does not respect PAGER or MANPAGER with `--paging=never` in bat's config

Open benjamb opened this issue 1 year ago • 1 comments

I would have expected batman to still make use of $PAGER even if --paging=never was set in ~/.config/bat/config.

This may be an unreasonable expectation, but I wanted to open this up for discussion.

benjamb avatar Sep 19 '24 11:09 benjamb

Good catch. I'd like some more opinions on this before making a change to the default behavior, though. The current implementation is more consistent with bat, but that comes at the cost of being less consistent with man.

In the meantime, you can actually set --paging=always as part of the batman --export-env command, and that will pass it along when bat is called.

eth-p avatar Feb 22 '25 03:02 eth-p