Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line Filters does not work #1620

Closed
testtarou7 opened this issue Dec 20, 2022 · 3 comments
Closed

Line Filters does not work #1620

testtarou7 opened this issue Dec 20, 2022 · 3 comments
Milestone

Comments

@testtarou7
Copy link

I am asking about the Winmerge line filter.

When comparing two text files, I want to use a line filter to exclude lines that contain certain strings from the comparison, but I can't get it to exclude them.

For example
File 1
aaa
bbb 123
ccc

File 2
aaa
bbb 456
ccc
The string "bbb" was successfully excluded for the two files.

However, even if the string "bbb" is also excluded, as shown in the image
File 1
aaa
bbb 123
ccc 123

File 2
aaa
bbb 456
ccc 456
The line filter does not work well for a series of lines with different contents.

Incidentally, in the above example, if I insert a line break (blank line) between bbb and ccc, the line filter works, but I want to apply the line filter to consecutive lines.

Please let me know if you have any solutions.
キャプチャ

キャプチャ2

@sdottaka
Copy link
Member

Unfortunately, the current line filter behaves like this.

As a workaround, instead of the line filter, if you set the PrediffLineFilter prediffer plugin as follows, I think you will get the expected result.

image
image
image

@testtarou7
Copy link
Author

Thanks for the very clear explanation!

I got the results I expected.

I did'nt know that is the winmerge specification.

@sdottaka sdottaka added this to the v2.16.33 milestone Sep 20, 2023
@sdottaka
Copy link
Member

This issue will be closed with improvements in PR #2032.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants