MCPcopy Create free account
hub / github.com/modem-dev/hunk / gapKey

Function gapKey

src/ui/diff/expandCollapsedRows.ts:31–33  ·  view source on GitHub ↗
(position: CollapsedGapPosition, hunkIndex: number)

Source from the content-addressed store, hash-verified

29
30/** Stable identifier for one collapsed gap inside a single file. */
31export function gapKey(position: CollapsedGapPosition, hunkIndex: number) {
32 return `${position}:${hunkIndex}`;
33}
34
35/**
36 * Pick the gap key that the keyboard shortcut should toggle for the selected

Callers 4

renderHeaderRowFunction · 0.90
expandCollapsedRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected