obsidian-folder-notes icon indicating copy to clipboard operation
obsidian-folder-notes copied to clipboard

[Bug] Template variables are not replaced

Open vis4rd opened this issue 10 months ago • 4 comments

When creating a Folder Note with Ctrl + Click, template variables are not replaced.

How to reproduce:

  1. Create a folder (with no note)
  2. Create template file:
    ---
    title: "{{title}}"
    ---
    # {{title}}
    
  3. Set the template file in Folder Note settings
  4. Ctrl + Click on the folder from step 1
  5. Observe {{title}} variables not being replaced

When creating Folder Note from context menu, everything works.

Tested without Templater plugin.

vis4rd avatar Feb 26 '25 19:02 vis4rd

It's probably the same issue as the duplicated templates issue, I'll hopefully release this weekend a stable beta release and some days later a public release but currently you could download https://github.com/LostPaul/obsidian-folder-notes/releases/tag/1.7.30-25-beta which should work fine enough but I haven't tested it that much.

LostPaul avatar Feb 28 '25 20:02 LostPaul

Unfortunately 1.7.30-25-beta release does not fix this for me, I checked in both sandbox vault and my actual vault. But it works when creating folder note from context menu.

vis4rd avatar Feb 28 '25 23:02 vis4rd

What about the latest release 1.7.30-26-beta?

LostPaul avatar Mar 04 '25 21:03 LostPaul

Can confirm that the bug is fixed in 1.7.30-26-beta, thank you!

vis4rd avatar Mar 07 '25 20:03 vis4rd