MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / killWordBefore

Function killWordBefore

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

Source from the content-addressed store, hash-verified

191 }
192
193 function killWordBefore(): Cursor {
194 const { cursor: newCursor, killed } = cursor.deleteWordBefore()
195 pushToKillRing(killed, 'prepend')
196 return newCursor
197 }
198
199 function yank(): Cursor {
200 const text = getLastKill()

Callers

nothing calls this directly

Calls 2

pushToKillRingFunction · 0.85
deleteWordBeforeMethod · 0.80

Tested by

no test coverage detected