Skip to content

πŸš€ Minimal color mode reusing the default colorsΒ #193

@waldyrious

Description

@waldyrious

I've been using git's diff-highlight script and I like the way it handles colors β€” it supports inline insertion/deletion highlighting (not as well as delta) using the reversed/negative style based on the same red/green colors used for the non-highlighted parts.

I would love if delta had an option to do the same. Right now, the difference is quite jarring to my eyes:

git diff-highlight
diff diff-highlight
delta --color-only delta
diff-delta--color-only diff-delta

For comparison, here's what diff-so-fancy does. Note how it reuses the original colors for added/deleted text, as well as for the file and hunk headers (although it does introduce a different shade of green for the inline highlight, which I've reported in so-fancy/diff-so-fancy#374):

diff-so-fancy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions