[[Obsidian]]でエディタの中身(テキスト)を差分がある箇所のみ複数置換する方法。`Editor.transaction` を使う。 ```ts app.workspace.activeEditor?.editor.transaction({ changes: [ { from: { line: 1, ch: 1 }, to: { line: 1, ch: 2 }, text, }, . . ], }); ```