react-diff-viewer icon indicating copy to clipboard operation
react-diff-viewer copied to clipboard

Only show additions?

Open grantspilsbury opened this issue 5 years ago • 1 comments

I have a view that I want to either highlight added OR removed lines, but not both at the same time.

Is there a way to diff for ONLY added lines OR removed lines. I don't want to show them at the same time.

Is it possible to return only 1 side of the side-by-side view? Is it possible to only highlight added lines in the unified view?

grantspilsbury avatar Apr 13 '20 13:04 grantspilsbury

@grantspilsbury Thanks for the question. Unfortunately, that is not possible now. But, I can take "Show only diff" as a feature request and add it in the future release.

praneshr avatar May 10 '20 09:05 praneshr