Replies: 1 comment 2 replies
-
There's not a way around having to hit the <%*
const newFileName = tp.date.now("YYYY-MMM-DD hh-mm-ss ZZ");
await tp.file.move("/Inbox/" + newFileName);
-%>
<% "---" %>
key: value
<% "---" %>
# <% newFileName %>
<% tp.file.cursor() %> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, very new to templater here. I made this template:
When I run "create new note from template" it correctly moves and names the file, but then the title becomes highlighted. Since the template also has some frontmatter, I have to hit tab and then page down to get to the point where I want the cursor to be initially. I've already enabled automatic jump to cursor and restarted Obsidian. The cursor() code disappears, indicating it has run, even when it's in its own <% %> block. How do I fix this?
Beta Was this translation helpful? Give feedback.
All reactions