pop-os / keyboard-configurator

Keyboard configuration UI
GNU General Public License v3.0
259 stars 45 forks source link

Exported layout should sort json keys #188

Closed DW8Reaper closed 11 months ago

DW8Reaper commented 1 year ago

It would be very helpful if the keys in the JSON export file were sorted consistently (I don't really care if it is alphabetical or anything in particular just consistent).

This will be helpful when you make changes to a layout and want to do a diff on the files to see what changed, at the moment because the key order changes every time you export doing a diff on the files is basically useless.

For example, I exported my layout to layout-export-1.json, then I restarted the keyboard app and did another export without making any changes to layout-export-2.json. If I now diff those two files (which are technically identical files) it will have a ton of differences because the key order changed:

layout-file-compare