Need support to enhance default template to automatically Include Note Title in First Heading #1524
Unanswered
khanhtoan529
asked this question in
Help
Replies: 1 comment
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 (
#
), when I use command "Create new note", so I can use the first heading as the note title and quickly type the note name.The Issue:
When I create a new note from a wikilink, the behavior isn’t as expected.
For example, if I type:
Mike loves [[hiking]]
Clicking on
[[hiking]]
creates a note like this:My Desired Result:
I want the first heading (
#
) to include the note title automatically. The output should look like this: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.
All reactions