MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / taskFollowKey

Function taskFollowKey

packages/app-core/src/components/TasksView.tsx:626–628  ·  view source on GitHub ↗

Stable identity for cursor-follow across a reorder: a task's id encodes its * index (which a line move changes), but sourcePath + content do not.

(task: VaultTask)

Source from the content-addressed store, hash-verified

624/** Stable identity for cursor-follow across a reorder: a task's id encodes its
625 * index (which a line move changes), but sourcePath + content do not. */
626function taskFollowKey(task: VaultTask): string {
627 return `${task.sourcePath}${task.content}`
628}
629
630function cssEscape(value: string): string {
631 if (typeof CSS !== 'undefined' && typeof CSS.escape === 'function') return CSS.escape(value)

Callers 1

TasksViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected