MCPcopy
hub / github.com/witheve/Eve / findPosH

Method findPosH

typings/codemirror/codemirror.d.ts:112–112  ·  view source on GitHub ↗

Used to find the target position for horizontal cursor motion.start is a { line , ch } object, amount an integer(may be negative), and unit one of the string "char", "column", or "word". Will return a position that is produced by moving amount times the distance specified by unit.

(start: CodeMirror.Position, amount: number, unit: string, visually: boolean)

Source from the content-addressed store, hash-verified

110 When visually is true , motion in right - to - left text will be visual rather than logical.
111 When the motion was clipped by hitting the end or start of the document, the returned value will have a hitSide property set to true. */
112 findPosH(start: CodeMirror.Position, amount: number, unit: string, visually: boolean): { line: number; ch: number; hitSide?: boolean; };
113
114 /** Similar to findPosH , but used for vertical motion.unit may be "line" or "page".
115 The other arguments and the returned value have the same interpretation as they have in findPosH. */

Callers 4

byCharFunction · 0.80
byWordFunction · 0.80
byExprFunction · 0.80
operateOnWordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected