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

Function initialTargetFromPath

packages/app-core/src/lib/move-note.ts:17–24  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

15}
16
17function initialTargetFromPath(path: string): string {
18 const parts = path.split('/').filter(Boolean)
19 const top = parts[0]
20 if (top === 'inbox' || top === 'archive') {
21 return parts.slice(0, -1).join('/')
22 }
23 return 'inbox'
24}
25
26function buildMoveNoteSuggestions(folders: FolderEntry[]): PromptSuggestion[] {
27 const byValue = new Map<string, PromptSuggestion>()

Callers 1

buildMoveNotePromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected