(value: string)
| 71 | * `inbox/` (or bare `inbox`) is treated as the root too. |
| 72 | */ |
| 73 | export function parseTemplateDestination(value: string): MoveNoteDestination { |
| 74 | let sub = normalizeMoveTarget(value) |
| 75 | if (sub === 'inbox') sub = '' |
| 76 | else if (sub.startsWith('inbox/')) sub = sub.slice('inbox/'.length) |
| 77 | return { folder: 'inbox', subpath: sub } |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Folder suggestions for creating a new note, mirroring the sidebar NOTES tree: |
no test coverage detected