Open MistyKuu opened 7 years ago
It is possible just I never added it for that . If you go ahead I would gladly accept a PR.
@mmanela Has anything changed with regards to this since this was posted 3 years ago? I too am looking to use InlineDiffBuilder
for word-level chunking (or anything more granular than line level)
@mmanela I also would appreciate more detailed diff results for InlineDiffBuilder.
If I have some time I try to create a PR for this. Can you give some starting tips?
I was thinking about this, it might (havent looked too deeply) be simplest to generalize the SideBySideDiffbuilder's logic and have InlineDiffBuilder just consume the results of SideBySide and then flatten it.
I'm already busy with some code. Adding a HierarchialDiff as extra methods on both SideBySideDiffBuilder and InlineDiffBuilder. These methods use by default all 3 chunkers: Lines --> Words --> Chars.
I am looking forward to seeing what you end up with. Ideally, we can share most of the logic between the two diff builders. That would make it more maintainable.
Is there a way to include Subpieces in InlineDiffBuilder? I'm trying to create inline diff view but I want to higlight the changes on word level instead of line level. With SideBySideBuilder it's possible but Inline doesn't generate it.