Template folder supporting * in path

My daily notes file structure:

Daily
  2023
    01-Jan
       meeting
          meeting-20230106
          .
          .
       issue
          issue-20230107
          .
          .
    02-Feb
       meeting
          meeting-20230201
          .
          .
       issue
          issue-20230214
          .
          .

How can apply my meeting templater to all folders
/Daily/*/*/meeting

And the same for issue
/Daily/*/*/issue

I’d apply a template chooser to the /Daily folder, and then trigger the correct template from within that template.

Can you provide an example.

Thank You.

Sorry it took so long, it kind of slipped my mind, but if you’ve got the templates template_meeting and template_issue in your templates folder, then add another template like the one below:

<%*
  const baseFolder = tp.date.now("[/Daily/]YYYY[/]MM[-]MMM/")
  const datePart = tp.date.now()
  if ( tp.file.title.startsWith("Untitled") ) {
    const noteType = await tp.system.suggester((t) => t, ["meeting", "issue"])
    const newFilename =  baseFolder + noteType + "/" + noteType + "-" + datePart
	
    await tp.file.move(newFilename)
    tR = await tp.file.include(`[[f55538_${ noteType }]]`)
  }  
_%>

And attach as the new file template for the /Daily folder, and then each time you create a new file in there it’ll ask you if it’s a meeting or issue, and move the file to the correct place and insert the corresponding template.

I’ve set the baseFolder in an attempt to match your structure, and I’ve also opted for a proper date in the file name, so that file.day will get a value if you’re using Dataview queries later on.

Hopefully this’ll get you going, with choosing the type for the note and apply a matching template.