<%*
// Fetch the origin note name
let origin = await tp.user.get_origin_note();
// Get the current note's title
let title = tp.file.title;
// Generate a safe date string by sanitizing the output
let safeDate = tp.date.now("MM-DD HH-mm"); // Replace ":" with "-" for safe filenames
await tp.file.move("Zettelkasten/Questions/" + title);
-%>
---
Origin: <% tp.user.get_origin_note() %>
Created: <% tp.file.creation_date("YYYY-MM-DD HH:mm:ss") %>
Type: // fo1 //
Title: Question <% origin %> <% safeDate %>
Tags:
---
## Question from <% origin %>
<% await tp.file.rename("Question " + origin + " " + safeDate) %>