( name: string, templatePath: string, )
| 59 | } from "./applyTemplateToActiveNote"; |
| 60 | |
| 61 | function makeTemplateChoice( |
| 62 | name: string, |
| 63 | templatePath: string, |
| 64 | ): ITemplateChoice { |
| 65 | return { |
| 66 | name, |
| 67 | id: `id-${name}`, |
| 68 | type: "Template", |
| 69 | command: false, |
| 70 | templatePath, |
| 71 | folder: { |
| 72 | enabled: false, |
| 73 | folders: [], |
| 74 | chooseWhenCreatingNote: false, |
| 75 | createInSameFolderAsActiveFile: false, |
| 76 | chooseFromSubfolders: false, |
| 77 | }, |
| 78 | fileNameFormat: { enabled: false, format: "" }, |
| 79 | appendLink: false, |
| 80 | openFile: false, |
| 81 | fileOpening: { |
| 82 | location: "tab", |
| 83 | direction: "vertical", |
| 84 | mode: "source", |
| 85 | focus: false, |
| 86 | }, |
| 87 | fileExistsBehavior: { kind: "prompt" }, |
| 88 | }; |
| 89 | } |
| 90 | |
| 91 | function makeMultiChoice(name: string, choices: IChoice[]): IMultiChoice { |
| 92 | return { |
no outgoing calls
no test coverage detected