News for hackers. Stuff that matters.
Re:CLI: Improved by mlevental on Thursday August 30, 2018 @02:39PM (#17879472)
bat is cool but is there a way to get not to dump everything into my terminal and just page just like less? i wonder if there's a `bless` ?
Re:CLI: Improved by busterc on Saturday September 01, 2018 @11:49AM (#17892359)
I know what you're saying; I wanted the same thing. Here's how I resolved it: https://gist.github.com/busterc/f8e988b4ca63f24c71c56daf448a...
Re:CLI: Improved by jayrhynas on Thursday August 30, 2018 @04:05PM (#17880250)
You should be able to pass `--paging always`. The default `auto` will only page if the file contents is bigger than your screen.
Re:CLI: Improved by mlevental on Friday August 31, 2018 @09:14AM (#17885265)
this does paging but still leaves the page in my buffer/terminal/whatever.
Re:CLI: Improved by C0d3r on Thursday August 30, 2018 @04:06PM (#17880252)
If your terminal is big enough, it will just output like cat, otherwise, you get a pager.

You can disable it with `bat --paging never`

Re:CLI: Improved by craftyguy on Thursday August 30, 2018 @02:50PM (#17879592)
By default, bat seems to support displaying contents of the file in a pager.