Features
Bugfixes
- If the last line doesn't end with a newline character, don't add it if
--style=plain
, see #1438 (@Enselic) - Only print themes hint in interactive mode (
bat --list-themes
), see #1439 (@rsteube) - Make ./tests/syntax-tests/regression_test.sh work on recent versions of macOS, see #1443 (@Enselic)
- VimL syntax highlighting fix, see #1450 (@esensar)
- Print an 'Invalid syntax theme settings' error message if a custom theme is broken, see #614 (@Enselic)
- If plain mode is set and wrap is not explicitly opted in, long lines will no be truncated, see #1426
- If
PAGER
(but notBAT_PAGER
or--pager
) ismore
ormost
, silently useless
instead to ensure support for colors, see #1063 (@Enselic) - If
PAGER
isbat
, silently useless
to prevent recursion. ForBAT_PAGER
or--pager
, exit with error, see #1413 (@Enselic) - Manpage highlighting fix, see #1511 (@keith-hall)
BAT_CONFIG_PATH
ignored bybat
if non-existent, see #1550 (@sharkdp)
Other
- Performance improvements, see #1421 (@LovecraftianHorror)
- Added a new
--diagnostic
option to collect information for bug reports, see #1459 (@sharkdp) - Modified default theme colors to differentiate between a JSON key and a string value, see #1400 (@keith-hall)
- Upped min required Rust version to 1.42
Syntaxes
- Added Zig syntax, see #1470 (@paulsmith)
- Added Lean syntax, see #1446 (@Julian)
- Added
.resource
extension for Robot Framework files, see #1386 - Added
gnuplot
syntax, see #1431 (@sharkdp) - Highlight *.pac (Proxy auto-config) files as JavaScript, see #1515 (@sharkdp)
New themes
ansi
replacesansi-dark
andansi-light
, see #1104 and #1412 (@mk12). Breaking change: users that were previously using one of theansi-*
themes should switch toansi
.- The Gruvbox theme has been updated, see #1291 (@j0hnmeow). Breaking change: users that were previously using
gruvbox
orgruvbox-white
should update and usegruvbox-dark
/gruvbox-light
instead.
bat
as a library
- The following
PrettyPrinter
methods have been removed (they were previously deprecated):input_stdin_with_name
input_from_bytes_with_name
input_from_reader_with_name
vcs_modification_markers
(if thegit
feature is not enabled)