sharkdp/bat

--wrap unpaged

Open

#1,081 opened on Jun 30, 2020

View on GitHub
 (11 comments) (4 reactions) (0 assignees)Rust (1,557 forks)batch import
feature-requestgood first issue

Repository metrics

Stars
 (58,889 stars)
PR merge metrics
 (Avg merge 16d 6h) (11 merged PRs in 30d)

Description

I love it when bat wraps lines in a single page of output. When output needs to be sent to the pager, though, the wrapped lines are actively unhelpful. I'm very used to issuing -S to less once a log file is open to change the line wrapping live.

I'd like a --wrap mode that behaves like auto for unpaged output, but never when piping to less.

Contributor guide