farux / obsidian-auto-note-mover

This is a plugin for Obsidian (https://obsidian.md).
MIT License
255 stars 21 forks source link

Add some delay for Automatic mode #46

Open antomonte opened 1 year ago

antomonte commented 1 year ago

I intend to use Calendar+Periodic Notes+Templater plugins combined with AUTO NOTE MOVER.

I would create a note (through Calendar) within "DATED" folder, and Auto Note Mover would move automatically to the proper year folder (DATED/2023 , DATED/2022 .... and so on)

The problem is that currently Auto Note Mover performs its action at the very moment the new note exists, so it makes the Templater plugin to get a parsing error.

My proposal is to add a (configurable) delay to Auto Note Mover, allowing the "previous" plugins (Templater) to do their job.

Maybe you could ALSO consider to check that the file to be moved does NOT have any "hook" for Templater (i.e. <% tp. string), which would mean that Templater has done its job, so Auto Note Mover can get into action.

I consider adding the delay is a more generic solution, that could help on compatibility with other plugins I've not still tested , but waiting for "<% tp." string to disappear from the note, I think is a better focused solution with Templater plugin.

Regards