scroll wheel doesn't send arrow keys when git's pager config pipes to less
I'm using Git's diff-highlight, piped to less, for viewing Git diffs.
In my .gitconfig, I have
[core]
pager = /usr/local/share/git-core/contrib/diff-highlight/diff-highlight | less
(Read more at https://www.viget.com/articles/dress-up-your-git-diffs-with-word-level-highlights/)
iTerm2's "Scroll wheel sends arrow keys when in alternate screen mode" option doesn't work to scroll git diff
output.
I have no system less options set. When I less a-long-file.txt
, mouse scrolling works.
I'm not that familiar with alternate screen mode. Is this an iTerm2 bug?