MCPcopy
hub / github.com/codeaashu/claude-code / yank

Function yank

src/hooks/useTextInput.ts:198–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 }
197
198 function yank(): Cursor {
199 const text = getLastKill()
200 if (text.length > 0) {
201 const startOffset = cursor.offset
202 const newCursor = cursor.insert(text)
203 recordYank(startOffset, text.length)
204 return newCursor
205 }
206 return cursor
207 }
208
209 function handleYankPop(): Cursor {
210 const popResult = yankPop()

Callers

nothing calls this directly

Calls 3

getLastKillFunction · 0.85
recordYankFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected