MCPcopy Create free account
hub / github.com/chhoumann/quickadd / makeTemplateChoice

Function makeTemplateChoice

src/engine/applyTemplateToActiveNote.test.ts:61–89  ·  view source on GitHub ↗
(
	name: string,
	templatePath: string,
)

Source from the content-addressed store, hash-verified

59} from "./applyTemplateToActiveNote";
60
61function 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
91function makeMultiChoice(name: string, choices: IChoice[]): IMultiChoice {
92 return {

Calls

no outgoing calls

Tested by

no test coverage detected