Skip to content

Feature request: automatic decompression #748

@wwood

Description

@wwood

Hi,

I use bat as a nice replacement for less and one thing I see bat not doing is decompressing files that are compressed plain text e.g. gzip. For instance if I run less a.gz I see the contents of a.gz, while bat a.gz just tells me it is binary. Of course the workaround is just zcat a.gz |bat but I'm lazy.

I suppose this is related: https://github.com/wofr06/lesspipe

Thanks, ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsfeature-requestNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions