Bat: Wrap width customization

Created on 11 Sep 2018  路  3Comments  路  Source: sharkdp/bat

hello

Quick question: Is there a way to customize word wrap width?
It looks like by default it uses 80 characters with which is to low for my use cases (when I run iTem2 in the external monitor I have a little bit more real estate.)

Thank you

question

All 3 comments

The word wrap width should automatically adjust to the terminal's width. If it's not, something odd might be going on.

  • Do the horizontal lines in --style=grid,header fill the entire terminal?
  • What happens if you run tput cols?

@gAmUssA Thank you for your feedback.

Another possibility (I think):

  • The pager does report a (virtual) terminal width of 80 characters. You could try to run
    bat --paging=never ...
    and see if that helps.

looks like it was a glitch on my side.
everything works like a charm.
Thank you, folks @eth-p @sharkdp !

Was this page helpful?
0 / 5 - 0 ratings