You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was surprised when a lesspipe.sh upgrade caused less to start showing headers and line numbers like bat.
$ less README.md───────┬──────────────────────────────────────────────────────────────────────── │ File: README.md───────┼──────────────────────────────────────────────────────────────────────── 1 │ # lesspipe.sh, a preprocessor for less 2 │ 3 │ Version: 2.05 4 │ Author : Wolfgang Friebel [wp.friebel@gmail.com](mailto://wp.friebel@gmail.com) 5 │ License: GPL 6 │ 7 │ Latest version available as: 8 │ [zip file on github](https://github.com/wofr06/lesspipe.sh/archive/lesspipe.zip) 9 │ and the [repository on github](https://github.com/wofr06/lesspipe)
This isn’t what I expect from less, and it breaks things like searching at the beginning of the line (/^License). If I wanted bat’s behavior I would have run bat (which automatically invokes a pager).
When we run bat, should we default to running it with --style=plain? I’m not the first person to want this: #83.
We should also run it with --paging=never since there’s never a reason to launch a second less. (As of sharkdp/bat#560, these two options can be combined and abbreviated to bat -pp.)
The text was updated successfully, but these errors were encountered:
andersk
added a commit
to andersk/lesspipe
that referenced
this issue
Jul 11, 2022
I was surprised when a
lesspipe.sh
upgrade causedless
to start showing headers and line numbers likebat
.This isn’t what I expect from
less
, and it breaks things like searching at the beginning of the line (/^License
). If I wantedbat
’s behavior I would have runbat
(which automatically invokes a pager).When we run
bat
, should we default to running it with--style=plain
? I’m not the first person to want this: #83.We should also run it with
--paging=never
since there’s never a reason to launch a secondless
. (As of sharkdp/bat#560, these two options can be combined and abbreviated tobat -pp
.)The text was updated successfully, but these errors were encountered: