Skip to content

Display compressed files during text preview #1102

@jjvliu

Description

@jjvliu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions