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

Function dailyNotePatterns

packages/app-core/src/lib/vault-layout.ts:881–892  ·  view source on GitHub ↗
(settings: VaultSettings)

Source from the content-addressed store, hash-verified

879}
880
881function dailyNotePatterns(settings: VaultSettings): DateNotePatternSettings[] {
882 const current = currentDailyNotePattern(settings)
883 const seen = new Set([dateNotePatternKey(current)])
884 const out = [current]
885 for (const pattern of settings.dailyNotes.legacyPatterns ?? []) {
886 const key = dateNotePatternKey(pattern)
887 if (seen.has(key)) continue
888 seen.add(key)
889 out.push(pattern)
890 }
891 return out
892}
893
894function weeklyNotePatterns(settings: VaultSettings): DateNotePatternSettings[] {
895 const current = currentWeeklyNotePattern(settings)

Callers 2

classifyDateNoteFunction · 0.85

Calls 2

currentDailyNotePatternFunction · 0.85
dateNotePatternKeyFunction · 0.70

Tested by

no test coverage detected