You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The terminal output knows to mark dear specifically because it knows it is a NovelWord vs the rest of the line, which is NovelLinePart. However, the JSON output strips that away and leaves only the highlight (i.e. String).
There are at least 2 ways about this, would love to contribute. Options I thought about:
Drop NovelLinePart from the changes list as it is not a real change as far as I can tell. If we get NovelLinePart it means the myers_diff found the string in both sides, right?
Add the MatchKind itself, as an str, to the JSON output. Something like this:
Hello again!
I ran into an gap when trying to diff, example for simplicity:
The terminal output knows to mark
dear
specifically because it knows it is aNovelWord
vs the rest of the line, which isNovelLinePart
. However, the JSON output strips that away and leaves only the highlight (i.e.String
).There are at least 2 ways about this, would love to contribute. Options I thought about:
NovelLinePart
from the changes list as it is not a real change as far as I can tell. If we getNovelLinePart
it means the myers_diff found the string in both sides, right?WDYT @Wilfred ? I'll be happy to contribute this
The text was updated successfully, but these errors were encountered: