You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set -Ux MANPAGER "sh -c 'col -bx | bat -l man -p'"
type --help, fish_add_path --help, etc.
What happens?
Anything that isn't indented is syntax highlighted orange, ignoring any actual formatting.
What did you expect to happen instead?
The man page should be highlighted reasonably.
I think this might be happening because fish's man pages aren't indented? But I couldn't find anything suggesting that man page sections have to be indented, so if this is the reason, then the syntax highlighting should be able to tolerate fish's non-indented man page format.
CPU features: cmpxchg16b,fxsr,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3
Host: x86_64-apple-darwin
Less version
> less --version
less 643 (PCRE2 regular expressions)
Copyright (C) 1984-2023 Mark Nudelman
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less
The text was updated successfully, but these errors were encountered:
I have a similar issue, I think. I use zsh 5.9, bat 0.24 (installed via arch official repository) and I have MANPAGER=sh -c 'col -bx | bat -l man -p' too.
Not everything is orange for me but I have some color character which make it hard to read.
After some experimentations with my env vars, defining this variable worked fine.
Thank you
Some explanation if anyone struggle to configure it to their need:
# For global use across the system (in your bashrc/zshrc)export MANROFFOPT='-c'# For local script global useage
MANROFFOPT='-c'
man -P "$MANPAGER' --paging always'"<man entry># For online usage
MANROFFOPT='-c' man -P $MANPAGER<man entry>
Note that I haven't tested each one and only based them on my experience. I hope to not have make mistake. :-)
What steps will reproduce the bug?
set -Ux MANPAGER "sh -c 'col -bx | bat -l man -p'"
type --help
,fish_add_path --help
, etc.What happens?
Anything that isn't indented is syntax highlighted orange, ignoring any actual formatting.
What did you expect to happen instead?
The man page should be highlighted reasonably.
I think this might be happening because fish's man pages aren't indented? But I couldn't find anything suggesting that man page sections have to be indented, so if this is the reason, then the syntax highlighting should be able to tolerate fish's non-indented man page format.
Screenshots
How did you install
bat
?Homebrew
Software version
bat 0.24.0
Operating system
macOS 14.5 (Darwin 23.5.0)
Command-line
Environment variables
System Config file
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
Could not read contents of '/Users/jsu/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Custom assets
Compile time information
Less version
The text was updated successfully, but these errors were encountered: