(app: App, plugin: TaskNotesPlugin, onChoose: (file: TAbstractFile) => void)
| 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 |
nothing calls this directly
no test coverage detected