cargo bat 0.8.0
v0.8.0

latest releases: 0.24.0, 0.23.0, 0.22.1...
5 years ago

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

Don't miss a new bat release

NewReleases is sending notifications on new releases.