winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Next to each other differences interfere with Filters

Open OshidaBCF opened this issue 2 years ago • 2 comments

I made a filter that ignore all the "shafts" value, but because of the hp value change above, the filter doesn't want to apply "shafts": {\n "armorClass": "ship_structural_steel",\n "armorThickness": \d*\.\d*,\n "armorThrough": \d*\.\d*,\n( "shaft_0\d_dm": {\n "hp": \d*\.\d*\n },?\n)* },?\n image

I tried to make a filter that ignore any change for "hp", but it doesn't help here "hp": \d*\.\d*

if i edit the hp value to be the same on both sides, the filter works image

it happens a lot on my files and it's slightly annoying, is it possible to "separate" differences ?

OshidaBCF avatar Sep 02 '23 16:09 OshidaBCF

This may help if you specify the QueryJSON plugin as below, which will remove the "shafts" field. QueryJSON "del(.shafts)"

image image

sdottaka avatar Sep 03 '23 09:09 sdottaka

That's kinda useful, as there is a lot of field i want to ignore.

Thks

OshidaBCF avatar Sep 03 '23 12:09 OshidaBCF