<%* // Use suggester to select the note type let type = await tp.system.suggester( ["Zettel", "Lecture", "Project", "Research", "Term", "Creative", "Technical", "Hub"], ["Zettel", "Lecture", "Project", "Research", "Term", "Creative", "Technical", "Hub"] ); // Define variables for tags, folder, and template let folderPath = ""; let templatePath = ""; // Handle each type selection if (type === "Zettel") { folderPath = "Zettelkasten/"; templatePath = "Meta/templates/Zettel"; } else if (type === "Lecture") { folderPath = "Lectures/"; templatePath = "Meta/templates/Lectures"; } else if (type === "Project") { folderPath = "Outlines/"; templatePath = "Meta/templates/Projects"; } else if (type === "Research") { folderPath = "Research/"; templatePath = "Meta/templates/Research"; } else if (type === "Term") { folderPath = "Term/"; templatePath = "Meta/templates/Term"; } else if (type === "Creative") { folderPath = "Creative/"; templatePath = "Meta/templates/Creative"; } else if (type === "Technical") { folderPath = "Technical/"; templatePath = "Meta/templates/Technical"; } else if (type === "Hub") { folderPath = "Hubs/"; templatePath = "Meta/templates/Hub"; } let title = "Untitled.md"; // Move the file to the selected folder await tp.file.move(folderPath + title); // Include the selected template into the note let selectedTemplate = await tp.file.find_tfile(templatePath); tR += await tp.file.include(selectedTemplate); -%>