Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle compressed files #642

Closed
g2p opened this issue Aug 30, 2019 · 2 comments
Closed

Handle compressed files #642

g2p opened this issue Aug 30, 2019 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@g2p
Copy link

g2p commented Aug 30, 2019

This could be done by integrating with lesspipe / LESSOPEN at first.

@sharkdp
Copy link
Owner

sharkdp commented Aug 31, 2019

Please see #237

If you think there is a nice way to build a wrapper script that supports that, I'm happy to add it to the repository.

@sharkdp sharkdp added the duplicate This issue or pull request already exists label Aug 31, 2019
@sharkdp sharkdp closed this as completed Sep 9, 2019
anarcat added a commit to anarcat/bat that referenced this issue Jan 14, 2025
This relies on bsdcat from archive-tools, which supports more formats
than just gzip or, failing that, falls back to gunzip -c with a
warning.

Previously[1], @sharkdp stated that bat would not support compressed
files, but would be open in implementing a wrapper. There was another
implementation proposed elsewhere[2], but it seems overengineered to
me.

[1] sharkdp#642 (comment)
[2] sharkdp#237 (comment)
@anarcat
Copy link

anarcat commented Jan 14, 2025

If you think there is a nice way to build a wrapper script that supports that, I'm happy to add it to the repository.

i did #3177

anarcat added a commit to anarcat/bat that referenced this issue Jan 14, 2025
This relies on bsdcat from archive-tools, which supports more formats
than just gzip or, failing that, falls back to gunzip -c with a
warning.

Previously[1], @sharkdp stated that bat would not support compressed
files, but would be open in implementing a wrapper. There was another
implementation proposed elsewhere[2], but it seems overengineered to
me.

[1] sharkdp#642 (comment)
[2] sharkdp#237 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants