Decide whether a subtree can be skipped entirely when resuming after a path.
Every path under dirRelPath begins with dirRelPath + "/". If the resume
point does not lie inside the subtree and sorts at or after that prefix, then
it sorts after every path the subtree could produce, so the whole subtree is
already behind the cursor.
Parameters
dirRelPath: string
Vault-relative path of the directory.
after: string|undefined
Resume point, or undefined for a walk from the beginning.
Returns boolean
True when the subtree contains nothing the caller still needs.
Example
canSkipNoteSubtree("a", "b.md"); // true — every "a/…" sorts before "b.md"
Decide whether a subtree can be skipped entirely when resuming after a path.
Every path under
dirRelPathbegins withdirRelPath + "/". If the resume point does not lie inside the subtree and sorts at or after that prefix, then it sorts after every path the subtree could produce, so the whole subtree is already behind the cursor.