106 lines
1.5 KiB
Markdown
106 lines
1.5 KiB
Markdown
<%*
|
|
const date = tp.date.now("YYYY-MM-DD");
|
|
const year = tp.date.now("YYYY");
|
|
|
|
const title = await tp.system.prompt("Decision title");
|
|
|
|
if (!title) {
|
|
new Notice("Decision cancelled: no title entered.");
|
|
return;
|
|
}
|
|
|
|
const safeTitle = title
|
|
.replace(/[\\/:*?"<>|]/g, "-")
|
|
.trim();
|
|
|
|
const baseFolder = "20 Work/Decisions";
|
|
const yearFolder = `${baseFolder}/${year}`;
|
|
|
|
if (!app.vault.getAbstractFileByPath(yearFolder)) {
|
|
await app.vault.createFolder(yearFolder);
|
|
}
|
|
|
|
await tp.file.move(
|
|
`${yearFolder}/${date} - ${safeTitle}`
|
|
);
|
|
-%>
|
|
|
|
**Date:** <% date %>
|
|
**Status:** 🟡 Proposed
|
|
**Decision Owner:**
|
|
**People Involved:**
|
|
|
|
---
|
|
|
|
## Status Legend
|
|
|
|
- 🟡 **Proposed** — Decision is being considered; not final yet.
|
|
- 🟢 **Decided** — Decision has been made and is currently valid.
|
|
- 🔴 **Rejected** — Option/proposal was explicitly considered and rejected.
|
|
- ⚫ **Superseded** — Was previously valid, but a newer decision replaced it.
|
|
|
|
---
|
|
|
|
## Context
|
|
|
|
Why is a decision needed?
|
|
|
|
<% tp.file.cursor() %>
|
|
|
|
## Problem
|
|
|
|
What problem are we trying to solve?
|
|
|
|
## Options Considered
|
|
|
|
### Option 1
|
|
|
|
**Description:**
|
|
|
|
**Pros:**
|
|
-
|
|
|
|
**Cons:**
|
|
-
|
|
|
|
### Option 2
|
|
|
|
**Description:**
|
|
|
|
**Pros:**
|
|
-
|
|
|
|
**Cons:**
|
|
-
|
|
|
|
## Decision
|
|
|
|
What was decided?
|
|
|
|
## Why
|
|
|
|
Why was this option chosen?
|
|
|
|
## Risks / Trade-offs
|
|
|
|
What are we accepting by making this decision?
|
|
|
|
-
|
|
|
|
## Next Steps
|
|
|
|
_Actions belong in Twos, Jira, or Monday._
|
|
|
|
-
|
|
|
|
## Outcome
|
|
|
|
_To be completed later._
|
|
|
|
## Lessons Learned
|
|
|
|
_To be completed if useful._
|
|
|
|
## Related
|
|
|
|
- [[]] |