-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
word-diff for the plaintext fallback parser #497
Comments
There is word-level diffing, but I'm guessing the bright and bold style isn't supported in your terminal. That said, this is kinda subtle, especially for the changed |
Do those colors have meaning? |
Cool. So the functionality has already been there. :)
Yeah. Seems Windows Terminal doesn't enable it by default. Here for a fix.
Yes Indeed. The And probably an independent topic (but kinda related with
A Keeping old names and semantics unchanged to avoid compatible issues,
I for one would make |
Related: for changes in comments of programming languages. e.g. a repro: uncomment code. |
Not a bug. Just a feature request (
label: enhancement
).Currently, difftastic treats plain text (the fallback) as a simple line-oriented diff.
Would be nice if we can enable some kind of word-diff for it.
In real life, various config files are treated as plain text (fallback). And if we only
change a small part of a line (e.g.
theme="onedark"
->theme="twodark"
),word-diff would make the output more pleasant than the plain line-diff.
Below are some screenshots of an "artificial" use case showing
remove
/change
/insert
.difft a.txt b.txt
:difft --display inline a.txt b.txt
:git diff --no-index --color-words=. a.txt b.txt
:Since we are advertising
difft
as more than word-diff at our front page,can we make it behave similarly for the fallback plain text?
Difftastic 0.45.0
WSL 2 on Windows 10
The text was updated successfully, but these errors were encountered: