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

Method getTaskPathsForDateRange

src/utils/TaskManager.ts:727–749  ·  view source on GitHub ↗
(
		property: DateIndexProperty,
		operator: DateRangeOperator,
		date: string
	)

Source from the content-addressed store, hash-verified

725 }
726
727 getTaskPathsForDateRange(
728 property: DateIndexProperty,
729 operator: DateRangeOperator,
730 date: string
731 ): Set<string> {
732 this.ensureFilterIndexes();
733
734 const targetDate = getDatePart(date);
735 const index = property === "due" ? this.dueDateIndex : this.scheduledDateIndex;
736 const matchingPaths = new Set<string>();
737
738 for (const [indexedDate, paths] of index) {
739 if (!this.matchesDateRange(indexedDate, operator, targetDate)) {
740 continue;
741 }
742
743 for (const path of paths) {
744 matchingPaths.add(path);
745 }
746 }
747
748 return matchingPaths;
749 }
750
751 private matchesDateRange(
752 indexedDate: string,

Callers 1

Calls 3

ensureFilterIndexesMethod · 0.95
matchesDateRangeMethod · 0.95
getDatePartFunction · 0.90

Tested by

no test coverage detected