Use case or problem
When syncing my Obsidian folder between computers via git, the plugin data.json
files and the Obsidian config
file reorder their contents often, making the diff unnecessarily large and hard to read.
Proposed solution
When writing these configs, and in the plugin saveData
function, alphabetize the json before writing to disk.
Current workaround (optional)
This can be worked around by omitting these files from the git repo, but then I have to configure my plugins separately on each computer.