MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / buildDailyNoteDateByPath

Function buildDailyNoteDateByPath

packages/app-core/src/lib/vault-layout.ts:1116–1128  ·  view source on GitHub ↗
(
  notes: readonly NoteMeta[],
  settings: VaultSettings | null | undefined
)

Source from the content-addressed store, hash-verified

1114 * setting. Weekly notes are intentionally excluded — a week has no single day.
1115 */
1116export 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
1130export function dateNoteFolderMayBelongToDatePattern(
1131 subpath: string,

Callers 2

CalendarPanelFunction · 0.90
TasksViewFunction · 0.90

Calls 3

classifyDateNoteFunction · 0.85
noteTitleForDateFunction · 0.85
normalizeVaultSettingsFunction · 0.70

Tested by

no test coverage detected