🚀 make whitespace changes visible as such
- Dominant language
- Rust
- Stars
- 32.2k
- Forks
- 572
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
Hi, at first glance I couldn't find any open or closed issues on this topic. Please excuse me if I missed one.
Recently, while viewing a particular diff, I noticed that every indented line was highlighted as a difference, even though the code itself was not changed, other than being indented by _spaces_ vs. _tabs_. (PKGBUILD's are interpreted by bash, so indentation doesn't matter).

Therefore, I think it might be useful to have an option which allows displaying whitespace characters using one or more user-defined glyphs, and/or applying the `delta.{plus,minus}-emph-style` settings to whitespace changes.
In the case that the characters to display tabs were be defined as `'‣·'` and tab size as `4`, I would imagine something like :

Contributor guide
Research direction
Start by tracing how delta renders whitespace-only changes and where user configuration for diff styling is defined. Compare the requested user-defined glyphs and whitespace-specific emphasis with the existing plus/minus emphasis behavior. Done means whitespace changes are visibly distinguishable without obscuring unchanged code and the new option is documented and tested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, rust
- Domain
- cli, developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100