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

Function weeklyNotePatterns

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

Source from the content-addressed store, hash-verified

892}
893
894function weeklyNotePatterns(settings: VaultSettings): DateNotePatternSettings[] {
895 const current = currentWeeklyNotePattern(settings)
896 const seen = new Set([dateNotePatternKey(current)])
897 const out = [current]
898 for (const pattern of settings.weeklyNotes.legacyPatterns ?? []) {
899 const key = dateNotePatternKey(pattern)
900 if (seen.has(key)) continue
901 seen.add(key)
902 out.push(pattern)
903 }
904 return out
905}
906
907function dailyNoteLocationForPattern(
908 date: Date,

Callers 2

classifyDateNoteFunction · 0.85

Calls 2

currentWeeklyNotePatternFunction · 0.85
dateNotePatternKeyFunction · 0.70

Tested by

no test coverage detected