Create Note In Folder not replacing {{title}} or {{date}}

What I’m trying to do

Hello :). I hope I did not miss something in the documentation but I know that whenever we create a new note and then execute the command to insert a template, the {{title}} variable gets replaced by the file name. However, whenever we use the Community Plugin Create Note In Folder, that same variable does not get replaced, even though the template being used does contain the variable.

Things I have tried

I tried to look for options in the settings of the pluggin, I can see that we can add some custom variables, but that is not my intent. I would simply like the built-in variables such as {{title}} and {{date}} to be executed.
My final goal is to have these variables replaced because I use that in some TASK queries or DATAVIEW queries.

Which community plugin are you using ?
Templater ? QuickAdd ? Other … as I think there are quite a few “template” plugin available :sweat_smile:

If it’s Templater, I can say that Templater’s syntax is incompatible with the syntax used by the Templates core plugin (Templater can’t read/understand the Templates core plugin placeholders)…

I’m not familiar with it so can’t help. Merely linking the plugin to help others know which one you’re talking about: Create Note in Folder

1 Like

Thank you :sweat_smile:

I just realized I mis-read/mis-understood that part of the post :woman_facepalming:
(Fortunately, ridicule isn’t too bad of a thing :innocent: )

Hello guys, thanks for the time you took to reply to me. Let me add some additional information here.

I indeed use the follow plugins:

  • Create Note in Folder: This plugin lets you define commands (e.g. New Person) to which you associate a given folder in which the new note will be created AND a given template to be used.

As an example, I have a Person.md template which I use to fill in all the details of one given physical person. Within that template, I have inserted the {{title}} to reference the name of the file.

If I create a blank note manually and use the command /insert template and choose the Person.md, Obsidian will correctly pick-up the {{title}} keyword and replace it with the file name (or title actually).

But if I use Create Note In Folder, it kind of automates the pull of my Person.md template into my newly created file, but it does not trigger the {{title}} keyword like the /insert template command would do. I wonder how I could:

  • Use Create Note In Folder so it prompts the file title/name I’d want
  • Create the file into the folder associated to the command name (New Person)
  • Execute the command that replaces built-in keywords such as {{title}}

For the time being, I have replaced my {{title}} keyword by a Templater placeholder (e.g. <% tp.file.title%>) and after I’ve created my new file, I press [Alt+R] to execute the replacement of all the Templater commands.

But that is not really optimized :frowning:
I precise that I create Persons files all day long, I use the same principle for creating new Meeting (with different templates per customer name, for KBAs, etc.).

If anyone has had a similar experience and need and found a way of getting this done in a quicker way, I am all ears :smiley:

thank you