(self, edit, cmd)
| 361 | |
| 362 | class 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 | |
| 372 | class Md5EncryptTextCommand(sublime_plugin.TextCommand): |
nothing calls this directly
no test coverage detected