I like how most of the state in my Obsidian vault is clearly encapsulated in human readable text files within the vault. One thing that I have been am unable to figure out is where Obsidian stores information about bullet points and headings that have been folded. It seems to remember this pretty reliably, and across restarts (so it’s not just stored in memory). But unlike other state changes, I can find no evidence of any notes or configuration files changing.
Does anyone have any idea where this information is stored?
And as for the location in the disk (not memory), it is likely that the local storage is stored in the Local Storage folder under the global settings folder of Obsidian.
“The global settings folder” depends on your OS, see
Hmm… I wonder if this applies to the headings also, as that could potentially be used to pre-hide given headings, or manipulate headings/lists at given intervals or events.
I’ll need to look into this at some point. Nice findings, @ush .
that could potentially be used to pre-hide given headings, or manipulate headings/lists at given intervals or events.
I’ve been thinking about something similar for a while:
I tried app.foldManager.savePath(path, <folding I want to obtain>) followed by app.workspace.activeLeaf.view.previewMode.rerender(true), but unfortunately, nothing happened.
But as mentioned in the linked thread, a click event handler will be able to do the job, at least for headings/list items.
(I’m curious about if such an operation is possible for wider range of elements, and if so, how.)