bat
bat copied to clipboard
Option to omit binary content even when writing to a file
I'm trying to write a repo of files all to a single file. I'd like to take advantage of bat
s feature to omit writing binary files.
But when piping output to a file, bat writes binary files. I think -f
avoids writing binary files, but will then write colors, which I don't want.
I think it would work to have the opposite of --all
(ref https://github.com/sharkdp/bat/issues/2043), which will write binary even when writing to a TTY. Possibly this synthesizes to an option of --display-binary/--skip-binary
...?