MCPcopy Index your code
hub / github.com/codeaashu/claude-code / insertWithSpacing

Function insertWithSpacing

src/components/PromptInput/PromptInput.tsx:2133–2136  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

2131 }
2132 if (feature('QUICK_SEARCH')) {
2133 const insertWithSpacing = (text: string) => {
2134 const cursorChar = input[cursorOffset - 1] ?? ' ';
2135 insertTextAtCursor(/\s/.test(cursorChar) ? text : ` ${text}`);
2136 };
2137 if (showQuickOpen) {
2138 return <QuickOpenDialog onDone={() => setShowQuickOpen(false)} onInsert={insertWithSpacing} />;
2139 }

Callers

nothing calls this directly

Calls 1

insertTextAtCursorFunction · 0.85

Tested by

no test coverage detected