Skip to content

Diff by phrase functionality? #14

@Lilykos

Description

@Lilykos

Thanks a lot for this project. I was wondering if something can be done to achieve the following. Let's say I have 2 versions of a string:

"J. G. Feldstein, Chair" and "T. P. Pastor, Chair"

When using character level diff, I get this result:
image

Makes sense, of course, since it diffs by character and keeps all the ones that were there before. Id I diff by word, this happens:
image

Again, makes sense. However, this makes it difficult for a user to understand what happens. What would be great is if we could "whitelist" a few characters, so that they don't count on the diff, and use it in phrase level. So in that case, if we whitelist whitespace and punctuation, we could get:
image

Would this be feasible and/or possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions