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

Function resolveQuickNoteTitle

packages/app-core/src/lib/quick-note-title.ts:52–61  ·  view source on GitHub ↗
(
  notes: NoteMeta[],
  useDateTitle: boolean,
  prefix = 'Quick Note',
  date = new Date()
)

Source from the content-addressed store, hash-verified

50}
51
52export function resolveQuickNoteTitle(
53 notes: NoteMeta[],
54 useDateTitle: boolean,
55 prefix = 'Quick Note',
56 date = new Date()
57): string {
58 return useDateTitle
59 ? dateTitleForToday(notes, prefix, date)
60 : nowTimestamped(prefix, date)
61}

Callers 4

handlerFunction · 0.90
QuickNotesViewFunction · 0.90
SidebarFunction · 0.90
buildCommandsFunction · 0.90

Calls 2

dateTitleForTodayFunction · 0.85
nowTimestampedFunction · 0.85

Tested by

no test coverage detected