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

Function newChippablePrompt

internal/tui/prompt_test.go:13–18  ·  view source on GitHub ↗

newChippablePrompt returns a realistically-sized promptInput. Width matters: cursor navigation walks the wrapped grid; height is irrelevant here.

()

Source from the content-addressed store, hash-verified

11// newChippablePrompt returns a realistically-sized promptInput. Width matters:
12// cursor navigation walks the wrapped grid; height is irrelevant here.
13func newChippablePrompt() promptInput {
14 p := newPromptInput()
15 p.SetWidth(80)
16 p.SetHeight(20)
17 return p
18}
19
20// pasteKey builds the bracketed-paste KeyMsg bubbletea emits on paste.
21// Paste=true is the flag Update keys off of.

Calls 3

newPromptInputFunction · 0.85
SetWidthMethod · 0.80
SetHeightMethod · 0.80

Tested by

no test coverage detected