MCPcopy Index your code
hub / github.com/chasingboy/Xtools / run

Method run

xtools.py:320–324  ·  view source on GitHub ↗
(self, edit)

Source from the content-addressed store, hash-verified

318
319class SortAndUniqueTextCommand(sublime_plugin.TextCommand):
320 def run(self, edit):
321 text = get_buffer_text(self.view)
322 text = list(set(text.split('\n')))
323 text = '\n'.join(sorted(text))
324 update_file(self.view, edit, text)
325
326
327# Text encode

Callers

nothing calls this directly

Calls 2

get_buffer_textFunction · 0.85
update_fileFunction · 0.85

Tested by

no test coverage detected