<%*
// Prompt for note title and rename file with current date prefix
let qcFileName = await tp.system.prompt("Note Title");
let titleName = tp.date.now("YYYY-MM-DD") + " " + qcFileName;
await tp.file.rename(titleName);
// Prompt for move destination
let category = await tp.system.prompt(
"Where to move note? 01, 02 osv"
);
// Map input to folder name
let categoryMap = {
"01": "01 - Project",
"02": "02 - Areas",
"03": "03 - Resources",
"04": "04 - Fleeting",
"05": "05 - Permanent",
"06": "06 - Daily",
"07": "07 - Archive",
"img": "Project, Areas, Resources, Fleeting, Permanent, Daily, Archive"
};
// Determine destination folder (default to Uncategorized)
let dest = categoryMap[category] || "Uncategorized";
// If 'img' was chosen, just log the options; else move the file
if (category === "img") {
tR += "Available options: " + dest;
} else {
await tp.file.move(`${dest}/${titleName}`);
}
-%>
---
C-time: <% tp.file.creation_date("YYYY-MM-DD HH:mm") %>
modification date: <% tp.file.last_modified_date("YYYY-MM-DD HH:mm") %>
tags:
---