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_PAGERor--pager) ismoreormost, silently uselessinstead to ensure support for colors, see #1063 (@Enselic) - If
PAGERisbat, silently uselessto prevent recursion. ForBAT_PAGERor--pager, exit with error, see #1413 (@Enselic) - Manpage highlighting fix, see #1511 (@keith-hall)
BAT_CONFIG_PATHignored bybatif non-existent, see #1550 (@sharkdp)
Other
- Performance improvements, see #1421 (@LovecraftianHorror)
- Added a new
--diagnosticoption 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
.resourceextension for Robot Framework files, see #1386 - Added
gnuplotsyntax, see #1431 (@sharkdp) - Highlight *.pac (Proxy auto-config) files as JavaScript, see #1515 (@sharkdp)
New themes
ansireplacesansi-darkandansi-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
gruvboxorgruvbox-whiteshould update and usegruvbox-dark/gruvbox-lightinstead.
bat as a library
- The following
PrettyPrintermethods have been removed (they were previously deprecated):input_stdin_with_nameinput_from_bytes_with_nameinput_from_reader_with_namevcs_modification_markers(if thegitfeature is not enabled)