MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / openTaskNote

Method openTaskNote

src/bases/TaskListView.ts:2744–2754  ·  view source on GitHub ↗
(task: TaskInfo, newTab: boolean)

Source from the content-addressed store, hash-verified

2742 }
2743
2744 private openTaskNote(task: TaskInfo, newTab: boolean): void {
2745 const app = this.app || this.plugin.app;
2746 const file = app.vault.getAbstractFileByPath(task.path);
2747 if (file instanceof TFile) {
2748 if (newTab) {
2749 void app.workspace.openLinkText(task.path, "", true);
2750 } else {
2751 void app.workspace.getLeaf(false).openFile(file);
2752 }
2753 }
2754 }
2755
2756 private async filterProjectSubtasks(task: TaskInfo): Promise<void> {
2757 try {

Callers 2

Calls 2

getAbstractFileByPathMethod · 0.80
getLeafMethod · 0.80

Tested by

no test coverage detected