Ubiquity, by the way, is totally sweet.
Run "command editor" and paste the block of Javascript below somewhere in the text field.
That's all you need to do. It auto-saves.
CmdUtils.CreateCommand({
name: "urlencode",
takes: {"what": noun_arb_text},
preview: function(pblock, what) { pblock.innerHTML = CmdUtils.renderTemplate(escape(what.text)) },
execute: function(what) { CmdUtils.setSelection(escape(what.text)); }
No comments:
Post a Comment