Use word-diff view for markdown/prose
Description
When working with markdown (or any type of prose/text in general), the "classic" git-diff (intended for code) is of limited use.
In the below example we can see how making a couple of changes is hard to track as the entire paragraph is shown twice
Conversely, in the below example we can see how much more efficiently changes are shown using word-diff
Proposal
Since git natively offers a --word-diff
for these cases, users should have a mechanism to toggle this mode.
Add an additional button Word-dff
to the Inline/Side-by-side split button
Additional points / References / Links
It might be worthwhile considering to word-diff certain file extensions, such as .md
, .txt
etc. by default.
Classic Line-by-line code diff most likely is also the root cause behind this issue: #16713 (closed)
Edited by Nick Thomas