hipstersmoothie / obsidian-plugin-toc

Create a tables of contents for a note.
286 stars 20 forks source link

Settings are not sticking #21

Open j-r-e-i-d opened 2 years ago

j-r-e-i-d commented 2 years ago

The settings are defaulting to minimum heading depth of 4 rather than 2. Have restarted obsidian. No change.

dxps commented 2 years ago

I can confirm that as well.

Just installed, tested and while trying to change the settings, these values (min depth 3 and max depth 6) remain: image

:information_source: But I've noticed that if I change only the min depth (in my case decrease it 3 to 2) this setting is persisted.

:smile: Eventually, I updated the settings in .obsidian/plugins/obsidian-plugin-toc/data.json file, so that in the end I have what I wanted.

❯ cat KB/.obsidian/plugins/obsidian-plugin-toc/data.json 
{
  "minimumDepth": 2,
  "maximumDepth": 3,
  "listStyle": "bullet",
  "title": ""
}
❯ 
phillipjohnston commented 2 years ago

Same: cannot even select "number" as a list style.

phillipjohnston commented 2 years ago

Actually, scratch that: I just realized that (for me) the GUI doesn't update but the setting did propagate to data.json. So maybe that particular one has a different issue.

dada-man commented 2 years ago

Ditto. Great plug in (works better for my purposes than the dynamic one), but this feature kills it for me.

dxps commented 2 years ago

That workaround (manually setting it in that data.json file) seems minimal enough to me. Unless you work with multiple Obsidian vaults and this might become annoying, I don't see it as a big deal.