Re: why does git set X in LESS env var?
- From
- Dragan Simic <dsimic@manjaro.org>
- Date
- Oct 12, 2023, 05:57 UTC
- Message-ID
- <1ef5b918d54cc1444c4a5b8df3a340ad@manjaro.org>
- In-Reply-To
- <07bf5744c7d123635740c62a940999e089339fa4.camel@scientia.org>
On 2023-10-12 05:54, Christoph Anton Mitterer wrote:
Show 11 quoted lines
> Hey. > > Just noted that the popular bat utility apparently also uses -X to make > -F work (but also mention that this break scrolling). > > But it seem they have a check, an if less is version 530 or newer they > don't set -X. > > https://github.com/sharkdp/bat#using-a-different-pager > > Could be a way to go for git.
Let me repeat that the described scrolling-related issues are misleading. I use this, configured through $BAT_PAGER, and have never experienced such issues in a few years of using bat(1):
├─bash
│ └─bat -n --tabs 8 --wrap never message.txt
│ └─less -R -F -X