( notes: readonly NoteMeta[], settings: VaultSettings | null | undefined )
| 1114 | * setting. Weekly notes are intentionally excluded — a week has no single day. |
| 1115 | */ |
| 1116 | export function buildDailyNoteDateByPath( |
| 1117 | notes: readonly NoteMeta[], |
| 1118 | settings: VaultSettings | null | undefined |
| 1119 | ): Map<string, string> { |
| 1120 | const out = new Map<string, string>() |
| 1121 | const normalized = normalizeVaultSettings(settings) |
| 1122 | if (!normalized.dailyNotes.enabled || !normalized.dailyNotes.tasksDueOnNoteDate) return out |
| 1123 | for (const note of notes) { |
| 1124 | const info = classifyDateNote(note, normalized) |
| 1125 | if (info?.kind === 'daily') out.set(note.path, noteTitleForDate(info.date)) |
| 1126 | } |
| 1127 | return out |
| 1128 | } |
| 1129 | |
| 1130 | export function dateNoteFolderMayBelongToDatePattern( |
| 1131 | subpath: string, |
no test coverage detected