( templateName: string, initialPath: string, folders: FolderEntry[] )
| 127 | * suggestions (the folders you see in the sidebar) to quickly pick a folder. |
| 128 | */ |
| 129 | export function buildTemplateDestinationPrompt( |
| 130 | templateName: string, |
| 131 | initialPath: string, |
| 132 | folders: FolderEntry[] |
| 133 | ): PromptOptions { |
| 134 | return { |
| 135 | title: `Create "${templateName}" in…`, |
| 136 | description: 'Press Enter to create at the vault root, or type / pick a folder like Work/Research.', |
| 137 | initialValue: normalizeMoveTarget(initialPath), |
| 138 | placeholder: 'Vault root — type a folder to change', |
| 139 | okLabel: 'Create', |
| 140 | allowEmptySubmit: true, |
| 141 | suggestions: buildNotesFolderSuggestions(folders), |
| 142 | suggestionsHint: 'Empty = vault root · ↑↓ pick a folder · Enter create' |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | export function buildMoveNotePrompt( |
| 147 | note: Pick<NoteMeta, 'title' | 'path'>, |
no test coverage detected