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

Method getOffset

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

Source from the content-addressed store, hash-verified

1023 }
1024
1025 private getOffset(position: Position): number {
1026 return this.measuredText.getOffsetFromPosition(position)
1027 }
1028
1029 /**
1030 * 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