There is a question here on stack overflow that answers PART of my question (see link) https://mcmap.net/q/277840/-can-we-decode-url-with-notepad
Unfortunately, this solution is cumbersome, because it always encodes/decodes the ENTIRE current document.
My question is: How can I change the JavaScript in that solution to only modify whatever text is SELECTED in the current document?
I tried using Editor.currentView.selected
, but that throws an error when the script runs. If only I could find a document describing what all functions objects and properties are visible to the jN plugin. I suppose that's a topic for another question. Oh well.