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

Function parseMoveNoteTarget

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

Source from the content-addressed store, hash-verified

56}
57
58export function parseMoveNoteTarget(value: string): MoveNoteDestination {
59 const normalized = normalizeMoveTarget(value)
60 const [folder, ...rest] = normalized.split('/')
61 return {
62 folder: folder as MoveNoteDestination['folder'],
63 subpath: rest.join('/')
64 }
65}
66
67/**
68 * Resolve the destination chosen in the template destination prompt. The value

Callers 5

onMoveFunction · 0.90
moveActiveNoteFunction · 0.90
ArchiveViewFunction · 0.90
SidebarFunction · 0.90
buildCommandsFunction · 0.90

Calls 1

normalizeMoveTargetFunction · 0.85

Tested by

no test coverage detected