Skip to content

Instantly share code, notes, and snippets.

@stefan-vatov
Last active January 16, 2022 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefan-vatov/e10a2352ad50b54420acbdce58d4ea3b to your computer and use it in GitHub Desktop.
Save stefan-vatov/e10a2352ad50b54420acbdce58d4ea3b to your computer and use it in GitHub Desktop.
[Obsidian templates]

<%* let title = tp.file.title if (title.startsWith("Untitled")) { title = await tp.system.prompt("Title"); await tp.file.rename(title); } tR += "---" %> Status: #inbox Title: <%* tR += title %> Created: <% tp.date.now("YYYY-MM-DD") %>

⇱ [[Uncategorised]] ▴ ⇲ [[No Related Pages]] ▴

<%* tR += title %>

Subheader<% tp.file.cursor(1) %>

Source:

<%* let title = tp.file.title if (title.startsWith("Untitled")) { title = await tp.system.prompt("Title"); await tp.file.rename(title); } tR += "---" %> Status: #inbox Title: <%* tR += title %> Created: <% tp.date.now("YYYY-MM-DD") %>

⇱ [[Uncategorised]] ▴ ⇲ [[No Related Pages]] ▴

<%* tR += title %>

Subcategory<% tp.file.cursor(1) %>


Tags: [[Lists]] -

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