Alternative font to highlight differences

Open
#2 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start by reading the referenced pretty-assertions behavior and the implementation of colored_diff::PrettyDifference, then trace its rendering path. Done means differing characters are presented with boldface in the proposed style, with output checked against the stated readability goal.

Written by the indexing model from the issue text.

Description

pretty-assertions presents differences between characters by also making differing characters boldface (1), whereas colored_diff::PrettyDifference changes the background color behind those characters (2). The former is more readable and its readability is far less dependent on terminal color scheme.

My proposal is to implement presentation 1 in colored_diff::PrettyDifference.

Dominant language
Rust
Stars
18
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CAD97/colored-diff

All issues in CAD97/colored-diff

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.