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

Function onMove

packages/app-core/src/components/NoteList.tsx:193–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191 if (selectedPath === n.path) await selectNote(null)
192 }
193 const onMove = async (): Promise<void> => {
194 const target = await promptApp(buildMoveNotePrompt(n, folders))
195 if (!target) return
196 const dest = parseMoveNoteTarget(target)
197 await moveNote(n.path, dest.folder, dest.subpath)
198 }
199 const onRestore = async (): Promise<void> => {
200 const meta = await window.zen.restoreFromTrash(n.path)
201 await refreshNotes()

Callers

nothing calls this directly

Calls 4

promptAppFunction · 0.90
buildMoveNotePromptFunction · 0.90
parseMoveNoteTargetFunction · 0.90
moveNoteFunction · 0.50

Tested by

no test coverage detected