D0n9X1n/MJsonViewer

[Feature request] Highlight a property in all siblings

sabi0 opened this issue · 0 comments

sabi0 commented

Sometimes large JSONs have similar repetitive blocks. And in case you need to analyze a particular property in all these blocks it would be nice to have this property highlighted. So that you could spot it easily.

Sometimes a simple "Find" is enough. But if the property name appears on different levels (or is also present in the values) navigating the "Find" results is not very convenient.

I would like to suggest that when a property name is Ctrl+clicked then all properties having the same path structure are highlighted with a bright background.

Say, I Ctrl+clicked on a property with a path foo.bar[3].value. Then all properties with path matching *.*[*].value should be highlighted: abc.x[0].value, parent.child[1].value. But not abc.value and neither default.data.value.

It would be nice if multiple properties could be highlighted at the same time. With different colors.
You could have, say, 10 predefined highlighting colors. And on Ctrl+click pick the first available and mark it as "occupied". The second Ctrl+click on a property would remove the highlighting and mark the color as "available" again.