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

Method getOffset

src/utils/Cursor.ts:1050–1052  ·  view source on GitHub ↗
(position: Position)

Source from the content-addressed store, hash-verified

1048 }
1049
1050 private getOffset(position: Position): number {
1051 return this.measuredText.getOffsetFromPosition(position)
1052 }
1053
1054 /**
1055 * Find a character using vim f/F/t/T semantics.

Callers 6

upMethod · 0.95
downMethod · 0.95
startOfCurrentLineMethod · 0.95
startOfLineMethod · 0.95
firstNonBlankInLineMethod · 0.95
endOfLineMethod · 0.95

Calls 1

getOffsetFromPositionMethod · 0.80

Tested by

no test coverage detected