franciskafieh / obsidian-list-modified

🪨 The advanced and adaptive changelog for Obsidian. Links all modified files meeting certain criteria to a timed (daily, weekly, monthly) note.
MIT License
85 stars 7 forks source link

[FR] Fix all content being removed in level 2 heading #71

Open franciskafieh opened 1 year ago

franciskafieh commented 1 year ago

Describe the desired feature

all content from the primary heading's h2 to the next h2 in the note is deleted with every update.

Possible alternatives

either make the hx's customizable, or preferably, stop relying on headings to parse. Only problem with this is that other methods may not be cached, which would result in a possible slowdown whenever the plugin reads the file.

franciskafieh commented 1 year ago

idea: go up to next heading that is not settings.modifiedHeading or settings.deletedHeading -- as an at least temporary thing so people's daily notes don't get messed up unintentionally