v0.8.0
Features
-
Support for a configuration file with the following simple format:
--tabs=4 --theme="Sublime Snazzy" # A line-comment --map-syntax .ignore:.gitignore --map-syntax PKGBUILD:bash --map-syntax Podfile:ruby # Flags and options can also be on a single line: --wrap=never --paging=never
The configuration file path can be accessed via
bat --config-file
. On Linux,
it is stored in~/.config/bat/config
. -
Support for the
BAT_OPTS
environment variable with the same format as specified
above (in a single line). This takes precedence over the configuration file.See also #310.
-
Support for custom syntax mappings via the
-m
/--max-syntax
option.This allows users to (re)map certain file extensions or file names to an existing syntax:
bat --map-syntax .config:json ...
The option can be use multiple times. Note that you can easily make these mappings permanent by using bats new configuration file.
See #169
-
Support pager command-line arguments in
PAGER
andBAT_PAGER
, see #352 (@Foxboron) -
First-line syntax detection for all input types, see #205
-
Encoding support for UTF-16LE and UTF-16BE, see #285
-
New syntaxes: Robot framework (@sanga)
Changes
- Binary files are now detected and not displayed when the output goes to an interactive terminal, see #205
Bugfixes
-
JavaDoc comments break syntax highlighting in .java files, see #81
-
Bat Panics on Haskell Source Code, see #314
Other
-
Better
-h
and--help
texts. -
Updated documentation on how to configure
bat
s pager -
Updated documentation for light backgrounds, see #328 (@russtaylor)
-
Generate shell completions during build, see #115 (@davideGiovannini)
-
A lot of new tests have been written
-
bat
is now available via nix, see #344 (@mgttlinger)