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

Method run

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

Source from the content-addressed store, hash-verified

271
272class AddPrefixSuffixCommand(sublime_plugin.TextCommand):
273 def run(self, edit, cmd):
274 text = get_buffer_text(self.view)
275 chars = get_console_text(self.view)
276 text = add_prefix_suffix(text,chars,cmd)
277
278 if text is not None:
279 update_file(self.view, edit, text)
280
281
282class ReplaceKeyToValueCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls 4

get_buffer_textFunction · 0.85
get_console_textFunction · 0.85
add_prefix_suffixFunction · 0.85
update_fileFunction · 0.85

Tested by

no test coverage detected