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

Method replaceRange

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

Replace the part of the document between from and to with the given string. from and to must be {line, ch} objects. to can be left off to simply insert the string at position from.

(replacement: string, from: CodeMirror.Position, to: CodeMirror.Position, origin?:string)

Source from the content-addressed store, hash-verified

442 /** Replace the part of the document between from and to with the given string.
443 from and to must be {line, ch} objects. to can be left off to simply insert the string at position from. */
444 replaceRange(replacement: string, from: CodeMirror.Position, to: CodeMirror.Position, origin?:string): void;
445
446 /** Get the content of line n. */
447 getLine(n: number): string;

Callers 11

codemirror.jsFile · 0.80
killFunction · 0.80
operateOnWordFunction · 0.80
handleKeyInsertModeFunction · 0.80
VimFunction · 0.80
extendLineToColumnFunction · 0.80
repeatInsertModeChangesFunction · 0.80
formatBlockMethod · 0.80
_historyDoMethod · 0.80
EditorClass · 0.80
normalizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected