Skip to content

Gobble common leading whitespace #1935

Answered by th1000s
BWindey asked this question in Q&A
Discussion options

You must be logged in to vote

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"

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BWindey
Comment options

@dandavison
Comment options

@BWindey
Comment options

Answer selected by BWindey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants