MCPcopy Create free account
hub / github.com/chasingboy/Xtools / run

Method run

xtools.py:363–369  ·  view source on GitHub ↗
(self, edit, cmd)

Source from the content-addressed store, hash-verified

361
362class UrlEncodeDecodeTextCommand(sublime_plugin.TextCommand):
363 def run(self, edit, cmd):
364 text = get_buffer_text(self.view).replace('\r\n','\n').replace('\r','\n')
365 if cmd == 'encode':
366 text = quote(text)
367 if cmd == 'decode':
368 text = unquote(text)
369 panel_print(self.view, edit, text.replace('%0A','\n'))
370
371
372class Md5EncryptTextCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls 2

get_buffer_textFunction · 0.85
panel_printFunction · 0.85

Tested by

no test coverage detected