With that in mind I came across the yq project in Github by Mike Farah which provides amongst other things a sorting tool along the lines of jq (for JSON) for YAML documents instead. In discussion with Scooter Software they explained that they would need a YAML parsing algorithm to be developed in order to pre-sort such lists into the correct layout, and this isn’t possible right now.Īlternatively they suggested creating a custom File Type which uses an external program to do the sorting work before it attempts to line up and search for differences.
secretName: so these are shown in blue, but why is it not possible to line up the other elements? I have defined certain non-important grammar elements to ignore, e.g.
Default file comparison using simple everything else text formatīy default red text shows differences, blue text means minor differences and hatched areas show where there is a lack of alignment possible.