(newTab = false)
| 55 | let clickTimeout: number | null = null; |
| 56 | |
| 57 | const openNote = (newTab = false) => { |
| 58 | const file = plugin.app.vault.getAbstractFileByPath(task.path); |
| 59 | if (file instanceof TFile) { |
| 60 | if (newTab) { |
| 61 | void plugin.app.workspace.openLinkText(task.path, "", true); |
| 62 | } else { |
| 63 | void plugin.app.workspace.getLeaf(false).openFile(file); |
| 64 | } |
| 65 | } |
| 66 | }; |
| 67 | |
| 68 | const editTask = async () => { |
| 69 | await plugin.openTaskEditModal(task); |
no test coverage detected