summaryrefslogtreecommitdiffhomepage
path: root/.rules/changelog/2026-03/28
diff options
context:
space:
mode:
Diffstat (limited to '.rules/changelog/2026-03/28')
-rw-r--r--.rules/changelog/2026-03/28/09.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/.rules/changelog/2026-03/28/09.md b/.rules/changelog/2026-03/28/09.md
new file mode 100644
index 0000000..cadb738
--- /dev/null
+++ b/.rules/changelog/2026-03/28/09.md
@@ -0,0 +1,13 @@
+# Changelog — 2026-03-28 — 09
+
+## Phase 1: Daily Note Manager
+
+### Added
+- `src/calendar/daily-notes.ts` — Core daily note module with all Phase 1 functions:
+ - `getDailyNotePath` — computes `{rootFolder}/{YYYY}/{MM}/{DD}/{YYYY-MM-DD}.md`
+ - `getDailyNote` — vault lookup by computed path
+ - `createDailyNote` — creates folders and file, supports template with `{{date}}` replacement
+ - `openDailyNote` — get-or-create then open in workspace leaf
+ - `indexDailyNotes` — recursively scans root folder, returns `Map<"YYYY-MM-DD", TFile>`
+ - `getDateFromDailyNote` — reverse lookup: extracts date from TFile path
+- `src/global.d.ts` — Global type declaration for `window.moment` (Obsidian provides moment at runtime but does not export types for it)