<%* // Only rename if the file has a generic name (like “Untitled” or starts with “note”) const fileName = tp.file.title; if (fileName === “Untitled” || fileName.startsWith(“note ”) || fileName.match(/^\d{4}-\d{2}-\d{2}/)) { await tp.file.rename(“note ” + tp.date.now(“YYYY-MM-DD HH-MM-ss”)); } %>