Need support to enhance default template to automatically Include Note Title in First Heading #1524
-
Hello guys. I don't know how to code at all, so I'm writing this post to ask for help with my default template for new notes. My Current Template:
The reason for this setup is that I want my cursor placed at an empty Heading 1 ( The Issue:When I create a new note from a wikilink, the behavior isn’t as expected. Clicking on
My Desired Result:I want the first heading (
My Proposed Solution:I'm thinking of a logic like this:
Could you suggest how to modify my template to achieve this? Any guidance or tips would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Give this a try ---
created: <% tp.file.creation_date() %>
---
# <% tp.file.title.startsWith("Untitled") ? "\<% tp.file.cursor() %\>" : tp.file.title %> |
Beta Was this translation helpful? Give feedback.
-
It works! Thank you very much, @Zachatoo ! |
Beta Was this translation helpful? Give feedback.
Give this a try