chmln / sd

Intuitive find & replace CLI (sed alternative)
MIT License
5.72k stars 136 forks source link

Make modified text blue instead of green #269

Closed CosmicHorrorDev closed 10 months ago

CosmicHorrorDev commented 10 months ago

The motivation here is that using green for the modified text section seems a bit confusing. As developers we're trained to recognize green as additions which implies the use of red for deletions

In sd though the only portion that is retained is just the additions, so it's best to pick a different color for it. This also avoids confusion when adding any diffing functionality to sd in the future