Canop / Canop/broot

Display compressed files during text preview

Open
#1,102 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
12.9k
Forks
314
Avg merge
1d 6h
Merged PRs (30d)
6

Description

Many Linux systems ship with `zmore` as a filter that transparently passes gzipped files (.gz, .z, .Z) through `gzip --cdfq -- "$FILE"` before sending them to the pager (e.g. `less` on my system). It would be helpful to have `:toggle_preview` mimic this behavior by default instead of displaying binary.

Example: select helloworld.txt.gz and `:toggle_preview`. Desired output is the unzipped text, not the binary.

Contributor guide

Open the contributing guide

Research direction

Start at the :toggle_preview implementation and trace how selected files are sent to the text preview. Compare the behavior with the issue's zmore example, including .gz, .z, and .Z files. Done means selecting helloworld.txt.gz and toggling the preview displays its unzipped text instead of binary data.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.