-
Beta Was this translation helpful? Give feedback.
Answered by
th1000s
Jan 12, 2025
Replies: 1 comment 3 replies
-
That is no something delta can or could easily be made to do. This would require a lot of look-ahead, maybe even for the entire hunk to ensure the correct number of leading whitespace is determined. A simpler, separate program could parse the git output, count leading white-space, and replace it, then feed it to delta, e.g. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
BWindey
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
That is no something delta can or could easily be made to do. This would require a lot of look-ahead, maybe even for the entire hunk to ensure the correct number of leading whitespace is determined. A simpler, separate program could parse the git output, count leading white-space, and replace it, then feed it to delta, e.g.
pager = "common_leading_whitespace_fix | delta"