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

Method insertChip

internal/tui/prompt.go:256–283  ·  view source on GitHub ↗

insertChip splices a chip label in at the cursor, recording the new span at the right ORDER position so the following reconcile() walks the labels left-to-right correctly. reconcile re-derives every span's start/end from the updated value, so the offsets on the inserted literal are placeholders it o

(content string)

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
reconcileMethod · 0.95
countLinesFunction · 0.85
chipLabelFunction · 0.85

Tested by

no test coverage detected