Skip to content

When using normalization, display the original rather than the normalized text #92

@stanspas

Description

@stanspas

Currently, Pre-Comparison Text Normalization Rules replace text and then a normal comparison is performed on the result.
When looking at the diff, the user has no easy way of knowing what the original (non-normalized) text was.

It would be useful if the normalization could be used solely for purposes of providing the inputs to a diff algorithm, generating the chunking/highlights of changes, and then - at diff display time - the text is replaced back with the original text while preserving the highlights generated based on the normalized version.

An example use case is to ignore timestamps when comparing logs for purposes of change highlighting, while still being able to see those timestamps while looking through the diff.

For reference: Meld's text filters feature achieves what I am describing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions