blob: cadb7389749d418fca1847c2af12bd3e6ec49b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)
|