eth-p / bat-extras

Bash scripts that integrate bat with various command line tools.
MIT License
1.15k stars 77 forks source link

partial highlighting in batman #102

Open haizaar opened 1 year ago

haizaar commented 1 year ago

Good day, I'm compaing man man to batman man and notice that the latter doesn't highligh flag names:

This is the vania man image

And this is batman image

I'm running batman 2023.03.21 on NixOS in KDE's konsole terminal.

eth-p commented 10 months ago

Are you using a different bat theme? Most of them seem to have issues highlighting flags, unfortunately. The few themes that do work are:

There isn't yet a way to override a theme from bat's config file, but I'll add it to my TODO list.

eth-p commented 10 months ago

I added some documentation for this issue in commit https://github.com/eth-p/bat-extras/commit/6f579b1d45f3bfd13eaf3efc4a4ce519ae636946.

yshui commented 6 months ago

I have the same problem with missing bold text. maybe related to sharkdp/bat#652

I think col -b essentially removes the boldness because it removes the backspace characters.