Closed figgis closed 4 years ago
Have I misunderstood
--wrap never
or isn't this feature available in bat?
--wrap never
will disable wrapping in bat
s output, but you will still get wrapping in the pager. You can use
--wrap=never
--pager="less -FRS"
in bat
s config file (or on the command line) to make this work:
echo {1..100} | bat --wrap=never --pager="less -FRS"
Unfortunately, it also seems to disable the -F
feature ("quit if one screen").
I forgot to say thanks. Thanks! I have wrappet bat in a alias to do this.
@sharkdp https://github.com/sharkdp/bat/issues/1188#issuecomment-693622221
❤️❤️❤️
I had stopped using bat as my main pager for a while, because less -S
is so useful for postgres horizontal scrolling.
I'm so thankful for this info because I can go back to using bat for everything.
Hi,
I have log-files containing huge arrays of integers and wrapping makes it very hard to see changes across lines. less -S works great here, but I can't seem to get bat to chop long lines.
I have tried every wrap-mode there is together with
--terminal-width
but I can't chop off long lines. No mater what I do I get a wrap.Compare with less:
Have I misunderstood
--wrap never
or isn't this feature available in bat?Using