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

Function fromFind

src/vim/transitions.ts:369–383  ·  view source on GitHub ↗
(
  state: { type: 'find'; find: FindType; count: number },
  input: string,
  ctx: TransitionContext,
)

Source from the content-addressed store, hash-verified

367}
368
369function fromFind(
370 state: { type: 'find'; find: FindType; count: number },
371 input: string,
372 ctx: TransitionContext,
373): TransitionResult {
374 return {
375 execute: () => {
376 const result = ctx.cursor.findCharacter(input, state.find, state.count)
377 if (result !== null) {
378 ctx.setOffset(result)
379 ctx.setLastFind(state.find, input)
380 }
381 },
382 }
383}
384
385function fromG(
386 state: { type: 'g'; count: number },

Callers 1

transitionFunction · 0.85

Calls 1

findCharacterMethod · 0.80

Tested by

no test coverage detected