After three months of development, the release of version 0.25.0 of the cross-platform console utility for viewing files has taken place. bat, written in Rust and distributed under the MIT or Apache 2.0 licenses.
The utility supports syntax highlighting for 174 ($ bat -L) programming languages and text markup.
Key Changes:
- Displays the filename in the terminal header when the Paging option is not set to Paging::Never.
- bat —squeeze-blank/bat -s now squeezes consecutive blank lines.
- A —squeeze-limit option has been added to set the maximum number of blank lines when using —squeeze-blank.
- PrettyPrinter::squeeze_empty_lines has been added to the API to support squeezing empty lines when using bat as a library.
- Syntax highlighting for JavaScript in files starting with #!/usr/bin/env bun.
- A —strip-ansi={never,always,auto} option has been added to remove ANSI control sequences from input.
- Implemented the ability to add or remove individual style components without replacing all styles.
- Automatic theme selection based on the terminal emulator's color scheme has been implemented.
- A —binary=as-text option has been added for outputting binary content.
- A —completion command has been added to create shell command auto-completions for bat. Supported shells include bash, fish, zsh, and ps1.
- Other improvements and bug fixes.
Source: linux.org.ru
