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

Function getNoteListItemCount

packages/app-core/src/components/VimNav.tsx:1757–1761  ·  view source on GitHub ↗
(renderedCount: number)

Source from the content-addressed store, hash-verified

1755 }
1756
1757 function getNoteListItemCount(renderedCount: number): number {
1758 const raw = document.querySelector<HTMLElement>('[data-notelist-count]')?.dataset.notelistCount
1759 const total = raw == null ? null : Number(raw)
1760 return boundedIndexCount(renderedCount, total != null && Number.isFinite(total) ? total : null)
1761 }
1762
1763 /** Find position in sorted items array by stored cursor index (no DOM focus dependency). */
1764 function findPositionByIndex(

Callers 1

handleNoteListKeyFunction · 0.85

Calls 1

boundedIndexCountFunction · 0.90

Tested by

no test coverage detected