MCPcopy
hub / github.com/callumalpass/tasknotes / constructor

Method constructor

src/modals/ProjectSelectModal.ts:28–38  ·  view source on GitHub ↗
(app: App, plugin: TaskNotesPlugin, onChoose: (file: TAbstractFile) => void)

Source from the content-addressed store, hash-verified

26 private plugin: TaskNotesPlugin;
27
28 constructor(app: App, plugin: TaskNotesPlugin, onChoose: (file: TAbstractFile) => void) {
29 super(app);
30 this.plugin = plugin;
31 this.onChoose = onChoose;
32 this.setPlaceholder("Type to search for project notes...");
33 this.setInstructions([
34 { command: "↑↓", purpose: "to navigate" },
35 { command: "↵", purpose: "to select" },
36 { command: "esc", purpose: "to cancel" },
37 ]);
38 }
39
40 getItems(): TAbstractFile[] {
41 const allFiles = this.app.vault

Callers

nothing calls this directly

Calls 1

setPlaceholderMethod · 0.80

Tested by

no test coverage detected