- Fix highlighting was broken on 256 colors terminals when using
bat-printer
. bat-printer
enables text wrapping by default asbat
command does.--no-wrap
can disable text wrapping.bat-printer
now looks at bat's cache directory when--custom-assets
flag is given. This is useful if you use some custom syntax highlighting or theme. Note that this may not work fine with some versions ofbat
command.bat-printer
automatically uses 'ansi' theme for terminals which enable only 16 colors since other themes don't work.- Add
--terminal-width
option to give the width of terminal explicitly. This is useful when piping the results to other command likeless
. - Fix build failure due to lack of assets (#4).
- Fix some newlines were missing when printing results with
syntect-printer
. - Use
terminal_size
crate directly instead of usingconsole
crate. It removes 3 dependencies whenbat-printer
feature is not enabled. - The document has been improved. Especially if you like a pager such as
less
, I recommend to check 'Set default command options' section. - (Dev) Several tests and benchmarks for
syntect-printer
were added.