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

Function looksLikePaste

internal/tui/prompt.go:183–196  ·  view source on GitHub ↗

looksLikePaste recognises paste-like key events. Primary signal: the bracketed-paste Paste flag (terminal wraps content in \x1b[200~...\x1b[201~). Some terminals omit those markers, so a KeyRunes event containing a newline also counts: bubbletea breaks runs on control chars, so a single keystroke ca

(msg tea.KeyMsg)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected