Action Directory / search_link
InstallShared by @hals_pg
Script
var e = encodeURIComponent;
var term = e(editor.getSelectedText());
var cb = e('onewriter://x-callback-url/replace-selection?text=');
app.openURL(formatString('pythonista://search_link.py?action=run&argv={0}&argv={1}', term, cb));