Open adamchainz opened 1 year ago
Interesting. If you use core.pager='cat -A'
or bat -A
or hexdump
or hexyl
or something, can you confirm that git is definitely passing the escape codes on to the pager?
Yes it is:
(Sorry, I meant to use less
for the second screenshot above.)
iTermās inline image protocol is a de facto standard for displaying images in the terminal. It has been copied by at least wezterm.
This blog post covers setting up Git to use the protocol to show images within diffs. But after following it, I found delta erases the image escape codes:
This is what the setup looks like with vanilla
less
:I guess this is part of how delta strips formatting from incoming diffs, in order to apply its own? If so it might be possible to special case the 1337 escape code for all iTerm ANSI extensions.
(I'm not that interested in this feature myself, since the image diffing seems a bit limited. But I thought delta shouldn't accidentally block this use case.)