walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
585 stars 17 forks source link

No autodetect with compressed files / Using -lang skips decompression #204

Closed krushia closed 2 months ago

krushia commented 3 months ago

Reporting two bugs at the same time here.

moar /usr/share/doc/moar-1.22.3/README.md.bz2 Transparently decompresses and shows the resulting text, albeit unformatted. moar -lang md /usr/share/doc/moar-1.22.3/README.md.bz2 Will show the compressed (binary) data, apparently after attempting to apply md formatting.

bzcat /usr/share/doc/moar-1.22.3/README.md.bz2 | moar -lang md does what I'd expect with both of the above commands.