You must use the latest preview to run plugins. The quick&dirty solution for what you proposed is:
// Entry point event / use ctrl+E,L to fire
monkey.add_extendedShortcutFiredE(function(object, eventargs) {
if (eventargs.extendedKey == "L") {
insertLink();
}
});
insertLink = function() {
if (monkey.selectionLength > 0) {
var text = monkey.selectedText.Trim();
var link = System.Windows.Forms.Clipboard.GetText(); // no checking if there is a valid link in a clipboard
monkey.selectedText = "[" + text + "](" + link + ")";
}
};
You should create new folder "Link" under the plugins dir, create file named "exe_Link.js" and copy the code in it. Re-run wm. Use CTRL+E,L to fire it up.
i.