Can you please share some of your templates?

@sanyam

This is my very simple quick add template - the top part just makes it so if the note has not been title yet it’ll prompt you for the title, if title already made (say by making the note link in a note than clicking on it) it’ll just format the title for you.

the tp.file.cursor(#) are just a quick snippet so when note is created and editing - hitting option + tab will take you right to each of those in order. Just a little extra thing to making filling in the info really quick.

as you can see - i have two of them inside [[]] - that’s just for me to make sure i link it to another note or too and helps me keep that quick side research, jotting quick notes from being lost to the abyss.

(it also automatically creates a link to the daily note which is located right under the Yaml and title.


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

 [[<% tp.file.cursor(2) %>]] << >> [[<% tp.file.cursor(3) %>]]
 
---
<% tp.file.cursor(1) %>

3 Likes