jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

How can I see the entire line (similar to git diff)?

Open naphtul opened this issue 8 years ago • 5 comments

I am wondering how can I see the entire line the same way as git diff shows it? Right now I only see the changed characters inside the line...

naphtul avatar Feb 14 '16 21:02 naphtul

on text unidiffs? (on objects you can see the "show unchanged values" checkbox. if you mean the unidiffs, they are created by Neil Fraser's diffmatchpatch lib, not sure it has that option, but if it had it, it would be possible to do it.

benjamine avatar Feb 14 '16 22:02 benjamine

This is an object. Here's my code: var delta = jsondiffpatch.diff(value.oldvalue, value.newvalue); value.diff = jsondiffpatch.formatters.html.format(delta, value.oldvalue);

What I see: image

I want to see the entire line, and not just the small diff in it...

naphtul avatar Feb 15 '16 06:02 naphtul

I see, yes, the text unidiff, those are created by https://code.google.com/archive/p/google-diff-match-patch/ but I'm not sure it has an option to do that.

benjamine avatar Feb 15 '16 15:02 benjamine

We're also having similar requirements. Any progress/work-arounds to achieve this?

nachikethashu avatar Dec 30 '16 11:12 nachikethashu

are there any advances ?

Kirbylix avatar Feb 19 '19 14:02 Kirbylix