Templater icon indicating copy to clipboard operation
Templater copied to clipboard

Support front matter creation when using DB Folder

Open Mattrogers13 opened this issue 2 years ago • 7 comments

Currently when using Templater with the DB Folder plugin the DB Folder creates Front Matter first within a new note causing Templater not to trigger.

I would like to have an option to still trigger when file size is greater than 0 or when front matter is detected.

Thank you!

Mattrogers13 avatar Jul 05 '22 21:07 Mattrogers13

Oh if this is what you want, I think you can throw this in a PR. It's unlikely anyone will get to this soon.

AB1908 avatar Jul 05 '22 22:07 AB1908

ok, will do. Thanks.

Mattrogers13 avatar Jul 05 '22 23:07 Mattrogers13

I now realize I do not understand how to add this to a PR.

Mattrogers13 avatar Jul 05 '22 23:07 Mattrogers13

That's ok. A PR is a Pull Request. If know how to fix this issue, you can fork this repo, add you changes, and then do a pull request. The PR is a request for @SilentVoid13 to "pull" your changes from your fork to his repo.

welpdx avatar Jul 06 '22 01:07 welpdx

I don't know how to do a PR but if you remove file.stat.size == 0 on line 3886 then it works with DB Folder

TheAussieTinker avatar Jul 12 '22 10:07 TheAussieTinker

If this breaks other workflows would it be possible to add a setting that turns off this check for the Data Base Folder users.

TheAussieTinker avatar Jul 12 '22 10:07 TheAussieTinker

Oh yes please this functionality would be awesome! People are trying to achieve THIS. I would be a bit nervous about just taking this line out with insight from @SilentVoid13 though. I assume it's there for a reason and would not want to break anyone else's workflows. Ideally, possibly a setting so you could turn this on/off might be a better solution.

Sklore avatar Jul 12 '22 11:07 Sklore