chore(code/find): reimplement single replace

This commit is contained in:
Elian Doran
2025-05-12 23:52:41 +03:00
parent 690337ee40
commit b646475018
3 changed files with 19 additions and 35 deletions

View File

@@ -194,6 +194,10 @@ export default class CodeMirror extends EditorView {
this.searchPlugin?.scrollToMatch(nextFound);
}
async replace(replaceText: string) {
this.searchPlugin?.replaceActiveMatch(replaceText);
}
cleanSearch() {
if (this.searchPlugin) {
this.dispatch({