MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / replace

Function replace

lib/web/CodeMirror/keymap/vim.js:5255–5259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5253 });
5254 }
5255 function replace() {
5256 var text = cm.getRange(searchCursor.from(), searchCursor.to());
5257 var newText = text.replace(query, replaceWith);
5258 searchCursor.replace(newText);
5259 }
5260 function next() {
5261 // The below only loops to skip over multiple occurrences on the same
5262 // line when 'global' is not true.

Callers 2

replaceAllFunction · 0.70
onPromptKeyDownFunction · 0.70

Calls 4

fromMethod · 0.80
toMethod · 0.80
replaceMethod · 0.80
getRangeMethod · 0.45

Tested by

no test coverage detected