MCPcopy Create free account
hub / github.com/codehamr/codehamr / handleChipKey

Method handleChipKey

internal/tui/prompt.go:221–249  ·  view source on GitHub ↗

handleChipKey gives chips atomic-token semantics: Backspace/Delete at a boundary removes the whole chip, ←/→ jumps across it, and a cursor inside a chip is snapped to a boundary first. Returns (handled, updated).

(msg tea.KeyMsg)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

UpdateMethod · 0.95

Calls 4

snapCursorOutOfChipMethod · 0.95
chipAtBoundaryMethod · 0.95
deleteSpanMethod · 0.95
setCursorRuneOffsetMethod · 0.95

Tested by

no test coverage detected