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

Class AddPrefixSuffixCommand

xtools.py:272–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270
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

no outgoing calls

Tested by

no test coverage detected