On 2023-10-12 05:54, Christoph Anton Mitterer wrote:
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