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

batman: bad highlighting when BAT_THEME is set

Open javivdm opened this issue 5 years ago • 1 comments

When the BAT_THEME is set to something different than the default batman does not do meaningful syntax highlighting.

Screenshots: When BAT_THEME is default (or not set): image

When BAT_THEME is set (in the screenshot to 'base16'): image

javivdm avatar May 07 '20 09:05 javivdm

image

I see what you mean, and this appears to be a bat or manpage syntax issue. Following the same instructions for using bat as a man pager on the bat readme, I get the same result as using batman:

image

Also to note, some themes (e.g. Dracula) appear to work fine: image


I don't think there's anything I can do to fix this within bat-extras, and you might need to open up an issue on the bat repo to get it fixed. As a possible workaround though, I could add a --theme=[theme] flag that you could add in an alias?

eth-p avatar May 12 '20 09:05 eth-p