Closed Balake closed 5 months ago
Not sure if my vault is setup incorrectly, but I can't get inserting a template to work. Here's some context:
ztemplates
tasks
```button name Start task list type line(42) template action tasks
Upon inspection and some debugging, here's what I've found:
folders[0] && folders.forEach((folder) => { console.log(file.path.toLowerCase(), `${folder}/${templateFile}.md`); if (file.path.toLowerCase() === `${folder}/${templateFile}.md`) { found = true; } });
So it looks like the file.path.toLowerCase() doesn't contain the leading / that's provided by the plugins settings.
file.path.toLowerCase()
/
Not sure if my vault is setup incorrectly, but I can't get inserting a template to work. Here's some context:
ztemplates
tasks
Upon inspection and some debugging, here's what I've found:
So it looks like the
file.path.toLowerCase()
doesn't contain the leading/
that's provided by the plugins settings.