MCPcopy Index your code
hub / github.com/codehamr/codehamr / pasteKey

Function pasteKey

internal/tui/prompt_test.go:22–24  ·  view source on GitHub ↗

pasteKey builds the bracketed-paste KeyMsg bubbletea emits on paste. Paste=true is the flag Update keys off of.

(s string)

Source from the content-addressed store, hash-verified

20// pasteKey builds the bracketed-paste KeyMsg bubbletea emits on paste.
21// Paste=true is the flag Update keys off of.
22func pasteKey(s string) tea.KeyMsg {
23 return tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune(s), Paste: true}
24}
25
26// makePaste returns a string with exactly n lines (n-1 newlines).
27func makePaste(n int) string {

Calls

no outgoing calls

Tested by

no test coverage detected