Use pretty formatting for the configuration and graph JSON so that version control is easier

I have not found any requests like this one.

Use case or problem

Right now Obsidian’s config and graph JSON files are collapsed. This makes diffing them and using them with version control quite difficult.

Proposed solution

Use pretty JSON formatting for the config and graph JSON files.

Current workaround (optional)

None. I could do something hacky with Prettier’s CLI, but I haven’t tried it yet.

Related feature requests (optional)

None.


Here’s an example of the problem of figuring out what changed in my config:

You could probably do this with git’s filter attribute: https://git-scm.com/docs/gitattributes#_filter

Thank you for the tip! I had no idea this was a thing.

Seems like quite a pain, though!

1 Like

will be implemented in 0.12.10

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.