Files

116 lines
1.8 KiB
Markdown

---
date:
status: idea
owner: Amadou
project:
strategic_area:
effort:
impact:
---
<%*
const date = tp.date.now("YYYY-MM-DD");
const year = tp.date.now("YYYY");
const title = await tp.system.prompt("Idea title");
if (!title) {
new Notice("Idea creation cancelled: no title entered.");
return;
}
const safeTitle = title
.replace(/[\\/:*?"<>|]/g, "-")
.trim();
const baseFolder = "20 Work/Ideas";
const yearFolder = `${baseFolder}/${year}`;
if (!app.vault.getAbstractFileByPath(yearFolder)) {
await app.vault.createFolder(yearFolder);
}
const filename = `${date} - ${safeTitle}`;
await tp.file.move(`${yearFolder}/${filename}`);
// Update Properties only after Templater finishes
tp.hooks.on_all_templates_executed(async () => {
const file = tp.file.find_tfile(
`${yearFolder}/${filename}`
);
if (!file) return;
await tp.app.fileManager.processFrontMatter(
file,
(frontmatter) => {
frontmatter.date = date;
frontmatter.status = "idea";
frontmatter.owner = "Amadou";
}
);
});
-%>
> 💡 **Idea** · 🔎 **Exploring** · 🟢 **Approved** · ⏸️ **Parked** · ⚫ **Dropped** · 🚀 **Converted**
## The Idea
Describe the idea in one or two sentences.
<% tp.file.cursor() %>
## Problem / Opportunity
What problem does this solve, or what opportunity does it create?
-
## Why It Matters
What is the potential business value?
-
## Current Situation
How is this handled today?
-
## Possible Approach
What could the solution look like?
Keep this high-level. This is not yet a project plan.
-
## Assumptions / Questions
What needs to be true, or what do I need to validate?
-
-
## Risks / Trade-offs
-
## Smallest Next Step
What is the cheapest or fastest action that would tell me whether this is worth pursuing?
-
## Outcome
What ultimately happened with this idea?
-
## Related
- [[]]