From bffeac84cb7b3094f7a4b879b6bab6ceaec561ac Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Sat, 28 Mar 2026 19:38:27 +0900 Subject: phase 1 calendar --- .rules/changelog/2026-03/28/09.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .rules/changelog/2026-03/28/09.md (limited to '.rules') 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) -- cgit v1.2.3