onlyafly / number-headings-obsidian

Automatically number headings in a document in Obsidian
MIT License
113 stars 11 forks source link

Version 1.3.0 does not automatically renumber #5

Closed DutchPete closed 3 years ago

DutchPete commented 3 years ago

I don't know if we mean the same thing when we talk about automatic renumbering.

If I have header A numbered as 1 and I have header B numbered as 2, and I insert a new header between A and B, then it should automatically number the new header as 2 and header B as 3.

That is how I understand it. Right now I still need to press my hotkey to get the numbers reset.

onlyafly commented 3 years ago

Hey @DutchPete: It should work. But you need to add "header-numbering-auto: true" to your document's front matter. See the settings screen for details. I'm going to work on improving the experience and documentation on this.

DutchPete commented 3 years ago

This at the top of my note works !! :

---
header-numbering-auto: true
---

YAY !!

BTW, the Settings screen just shows this:

image

DutchPete commented 3 years ago

There is definitely a reloading issue, because when I press ⌘+R Obsidian disappears, and that is only since I installed 1.3.0.

Also, I cannot get 1.3.0 to add numbering to an unnumbered note anymore, which is issue #4.

DutchPete commented 3 years ago

Another question: is there a way to set "header-numbering-auto: true" vault-wide, rather than on a per note basis?

onlyafly commented 3 years ago

Check out version 1.4.0 now. I made it easier to add the front matter settings, and fixed some small bugs. I hope this fixes your issue.