Open maave0 opened 4 years ago
we could just run it through some kind of json pretty / alphebatizer site evry time we make edits idk
I added a pre-commit sort script with commit 858222a. You have to copy it into .git/hooks/ yourself. Or run sh pre-commit
. It requires having the "jq" utility installed
I'm going to leave this issue open until it's fixed in OpenSCAD or I move off OpenSCAD. Should be easy to sort in any language, just need to talk to devs and submit a PR.
I suggested the change: https://github.com/openscad/openscad/issues/4447
Editing phone case configs in OpenSCAD sometimes re-arranges the JSON. This shows up in the git history and makes it harder to track real changes. Can this be fixed while still using the customizer? I didn't want to manage the JSON by hand.