onlyafly / number-headings-obsidian

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

impossible to insert definitions in the YAML #54

Closed kickTiger closed 1 year ago

kickTiger commented 1 year ago

Because in version 1.4.5, new attribute functionality was added.

I often found it impossible to insert definitions in the YAML area. Even if I forcibly wrote definition code in the YAML area, it would not automatically sort YAML

number headings: auto, first-level 2, max 1, start-at 1, 1.1

This impact is too serious. This plugin is the one I use the most, and I hope you can check and reproduce this issue and get it resolved. Thank you very much.

onlyafly commented 1 year ago

Hi @kickTiger: I am using the newest version of Obsidian, and I'm not sure what could be preventing you from adding it. It is possible in both "Source Mode" and standard mode to add the definition code.

kickTiger commented 1 year ago

I've rechecked and managed to replicate the issue you described. Here are the conditions:

It is possible to insert if the yaml region is blank, or if there is no number-headings-obsidian properties

I've recorded a GIF animation to provide you with a visual reference.

number-headings-obsidian

onlyafly commented 1 year ago

@kickTiger Thanks so much for the detailed explanation. I've confirmed the bug myself now. I'll try to find a fix for it shortly!

onlyafly commented 1 year ago

@kickTiger The bug should now be fixed in the latest version, version 1.14.0.