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

Function buildNoteDestinationPrompt

packages/app-core/src/lib/move-note.ts:108–122  ·  view source on GitHub ↗
(
  initialPath: string,
  folders: FolderEntry[]
)

Source from the content-addressed store, hash-verified

106 * pick a folder (the ones shown in the sidebar) to place it elsewhere.
107 */
108export function buildNoteDestinationPrompt(
109 initialPath: string,
110 folders: FolderEntry[]
111): PromptOptions {
112 return {
113 title: 'New note in…',
114 description: 'Press Enter to create at the vault root, or type / pick a folder like Work/Research.',
115 initialValue: normalizeMoveTarget(initialPath),
116 placeholder: 'Vault root — type a folder to change',
117 okLabel: 'Create',
118 allowEmptySubmit: true,
119 suggestions: buildNotesFolderSuggestions(folders),
120 suggestionsHint: 'Empty = vault root · ↑↓ pick a folder · Enter create'
121 }
122}
123
124/**
125 * Prompt for where a new template note should be created. Defaults to the

Callers 1

store.tsFile · 0.90

Calls 2

normalizeMoveTargetFunction · 0.85

Tested by

no test coverage detected