( initialPath: string, folders: FolderEntry[] )
| 106 | * pick a folder (the ones shown in the sidebar) to place it elsewhere. |
| 107 | */ |
| 108 | export 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 |
no test coverage detected