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

Method run

xtools.py:223–231  ·  view source on GitHub ↗
(self, edit, str)

Source from the content-addressed store, hash-verified

221
222class RemoveSpecificStringCommand(sublime_plugin.TextCommand):
223 def run(self, edit, str):
224 text = get_buffer_text(self.view)
225 if str == '[*]':
226 text = re.sub(r"\[.*?\]",'',text)
227 if str == '(*)':
228 text = re.sub(r"\(.*?\)",'',text)
229 if str == 'space':
230 text = text.replace(' ','')
231 update_file(self.view, edit, text)
232
233
234class DeleteLinesCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls 2

get_buffer_textFunction · 0.85
update_fileFunction · 0.85

Tested by

no test coverage detected