Komodo Edit macro to replace a specific word in current document with clipboard content; is it possible?

拟墨画扇 提交于 2019-12-04 19:39:49

Use a reference to the scimoz object, which uses a subset of the Scintilla API and includes both the copyText() method to add to the clipboard and the paste() method to output the current data:

komodo.assertMacroVersion(2);
var editor = ko.views.manager.currentView.scimoz;
editor.copyText(1,"("); //add left parentheses to clipboard buffer

Find_ReplaceAllInMacro(window, 0, 'Itemlink', editor.paste(), true, 0, 2, false, false);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!