Skip to content

v0.8.0

Compare
Choose a tag to compare
@sharkdp sharkdp released this 17 Oct 22:04
· 2721 commits to master since this release

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 and BAT_PAGER, see #352 (@Foxboron)

  • Add support for wildcards in Windows CMD, see #309 (@Zxey)

  • 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