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

Method getAllTasks

src/utils/TaskManager.ts:689–703  ·  view source on GitHub ↗

* Get all tasks by scanning all markdown files (just-in-time)

()

Source from the content-addressed store, hash-verified

687 * Get all tasks by scanning all markdown files (just-in-time)
688 */
689 async getAllTasks(): Promise<TaskInfo[]> {
690 const tasks: TaskInfo[] = [];
691 const files = this.app.vault.getMarkdownFiles();
692
693 for (const file of files) {
694 if (!this.isValidFile(file.path)) continue;
695
696 const taskInfo = await this.getTaskInfo(file.path);
697 if (taskInfo) {
698 tasks.push(taskInfo);
699 }
700 }
701
702 return tasks;
703 }
704
705 /**
706 * Get all task paths from the filter index.

Calls 3

isValidFileMethod · 0.95
getTaskInfoMethod · 0.95
getMarkdownFilesMethod · 0.80

Tested by

no test coverage detected