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

Function parseTemplateDestination

packages/app-core/src/lib/move-note.ts:73–78  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

71 * `inbox/` (or bare `inbox`) is treated as the root too.
72 */
73export function parseTemplateDestination(value: string): MoveNoteDestination {
74 let sub = normalizeMoveTarget(value)
75 if (sub === 'inbox') sub = ''
76 else if (sub.startsWith('inbox/')) sub = sub.slice('inbox/'.length)
77 return { folder: 'inbox', subpath: sub }
78}
79
80/**
81 * Folder suggestions for creating a new note, mirroring the sidebar NOTES tree:

Callers 1

store.tsFile · 0.90

Calls 1

normalizeMoveTargetFunction · 0.85

Tested by

no test coverage detected