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

Method getTaskPathsByPriority

src/utils/TaskManager.ts:783–788  ·  view source on GitHub ↗

* Get tasks by priority from the filter index.

(priority: string)

Source from the content-addressed store, hash-verified

781 * Get tasks by priority from the filter index.
782 */
783 getTaskPathsByPriority(priority: string): string[] {
784 const expectedPriority =
785 normalizePriorityConfigValue(priority, this.settings.customPriorities) ?? priority;
786 this.ensureFilterIndexes();
787 return Array.from(this.priorityIndex.get(expectedPriority) ?? []);
788 }
789
790 /**
791 * Get overdue task paths from the due-date index.

Calls 2

ensureFilterIndexesMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected