What I’m doing now is create my note and remove manually but it’s not that good!
Dunno if it’s a useful information but the extra space I have to remove are: one line and one space (I mean I have to press delete to times: the first takes me one line up, the second remove one space)
Any help appreciated!
BTW: in one case I’d like that the template inserted by tp.file.include could 1) prompt for a name, 2) get the clipboard content (<%tp.system.clipboard ()%>) and 3) get the link of the note from were I’m copying to clipboard.
I could manage 2) but don’t know how to get points 1 and 3, any idea?
How can I put at the beginning a prompt to
The line that I can’t understand how to make it works is Source:[[<% tp.config.active_file% >]](below)
The template for that note is:
\\?? Here should go the code for
\\<% tp.system.prompt("Title: (Id - Description)") and to set the name of the note?
---
aliases:
tags:
title: <% tp.file.title %>
type: zettel
created:
modified:
status: pending
priority:
---
See also: [[]]
HUB: [[]]
Source:[[<% tp.config.active_file %>]]
Commento a: [[]]
---
<%tp.system.clipboard ()%>
---
Wow, thanks a lot @stef.rausch,
but unfortunately I’m at the very beginning with templater, I studied the documentation but I can only use very basic commands…I copied your code at the very beginning (and put the corresponding templater tag in the title field) of the note template but I get a parsing error…the note is created, moved to the right folder but it’s empty and untitled (no prompt appears)