bat icon indicating copy to clipboard operation
bat copied to clipboard

Add single character argument for --wrap never

Open jguhlin opened this issue 3 years ago • 4 comments

I primarily use less -S to view everything due to long lines (bioinformatics, mostly). Bat is incredibly fast, but I'd appreciate a single character argument to substitute for --wrap never (such as -S to match less functionality, or something else).

Cheers

jguhlin avatar Jul 07 '22 01:07 jguhlin

I'm usually careful when providing new short flags, but this seems reasonable, given that it would be in line with lesss -S option. Maybe should also support --chop-long-lines, which is the long-form of -S.

sharkdp avatar Sep 06 '22 21:09 sharkdp

I would like to work on this one. What should the single letter abbreviation be for setting wrapping to off? Should it be implemented with -S or would a different letter work better?

johnmatthiggins avatar Sep 09 '22 06:09 johnmatthiggins

-S seems good.

sharkdp avatar Sep 11 '22 19:09 sharkdp

Sounds good. I made a pull request (#2309) for adding -S and the --chop-long-lines option.

johnmatthiggins avatar Sep 11 '22 21:09 johnmatthiggins