-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
It seems only one of the diff tool output styles is supported at the moment (diff -u), others are highlighted partially or not at all. I would like for the support to be a bit more complete.
Steps to reproduce:
- Create sample files to diff:
# cat 1
hello
howdy
hello
# cat 2
hello
hello
hello
- Use different ways to diff the files:
# diff 1 2 > diff-default.diff
# diff -u 1 2 > diff-u.diff
# diff -c 1 2 > diff-c.diff
- Open the diffs in editors and check:
- Zed (uses this repo):
- Sublime Text (uses a different implementation):
As all diff formats seem to follow the same "first column decides the operation" rule, I'd be happy if the most impactful characters <, > and ! were added into the highlighting. The diff format-specific headers are nice to have, but I'm mainly looking for the improvement to diff.plus, diff.minus and (if it even exists) diff.change syntax types.
the-mikedavis
Metadata
Metadata
Assignees
Labels
No labels