Skip to content

[FeatureRequest] Ignore sequence of character or entire lines matching regex (Text comparison and filenames) #106

@popbee

Description

@popbee

For more than a decade, Araxis Merge has been my top diffing application. One very neat feature is the ability to control the text diffing with custom regexes. Essentially have a way to "ignore" portions of lines that matches a regex pattern or ignore the whole line containing that pattern. (similar to your options for the ignore white space for example). They had a list of named regex patterns that you can enable/disable (so you can keep the list and use them when required).

If you are in control of the text diffing logic it might be relatively doable, hopefully your current "ignore white spaces" options already had to do the heavy lifting. I didn't check how your logic works (maybe you just rely on the built-in VSCode compare?).

I ran into a case just now with folder comparison. The file names all had a timestamp in it which I wanted to "ignore" so it would attempt to automatically compare those files as if they had the same name, for example:

config_dump_2021_09_11.json      config_dump_2021_09_10.json
settings_2021_09_11.json         settings_2021_09_10.json

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