Skip to content

Instantly share code, notes, and snippets.

@h6y3
Created July 25, 2021 00:57
Show Gist options
  • Save h6y3/be396376503b7f513548c9c8589349a7 to your computer and use it in GitHub Desktop.
Save h6y3/be396376503b7f513548c9c8589349a7 to your computer and use it in GitHub Desktop.
Templater/Obsidian Date-Based Router with Meeting Notes Use Case

<%* let title = tp.file.title if (title.startsWith("Untitled")) { title = await tp.system.prompt("Title"); await tp.file.rename(title); } %> <%* if (tp.file.title.includes("(meeting) ")) { %> <% tp.file.move("/meeting notes/" + tp.date.now("YYYY") + "/" + tp.date.now("MM") + "/" + tp.file.title.replace("(meeting) ", "")) %> <%_ tp.file.include('[[Meeting Template]]') %> <%_* } _%> <% tp.file.cursor() %>

<%+ tp.file.title %>

Date: <% tp.date.now("YYYY-MM-DD") %> Time: <% tp.date.now("HH:mm") %> Who: Last modified date: <%+ tp.file.last_modified_date() %>

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment