Skip to content

Add ability to enable --show-all output when output is redirected #1061

@dandavison

Description

@dandavison

Hi, I occasionally find myself wanting to capture the (very nice and useful) --show-all output. For example, in order to compute a diff on the --show-all output itself. Currently, the only way I know how to do this is to print the --show-all output to the screen, select it with a mouse, and copy it into a text file. I understand the reason bat must, by default, only enable -A if stdout is attached to an interactive terminal. If not by default then perhaps what I'm requesting could be something like

bat --show-all=always

Thanks for all the work on bat!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeature-requestNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions