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

Method remove

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

Source from the content-addressed store, hash-verified

121
122class SelectDomainRootAllCommand(sublime_plugin.TextCommand):
123 def remove(self,edit):
124 exts = ['.html','.login','.action','.htm','.shtml','.asp','.aspx','.jsp','.jspx']
125 text = get_buffer_text(self.view)
126 _text = text
127 for ext in exts:
128 _text = _text.lower().replace(ext,'#####')
129 update_file(self.view, edit, _text)
130
131 return text
132
133 def run(self, edit, cmd):
134 text = self.remove(edit)

Callers 1

runMethod · 0.95

Calls 2

get_buffer_textFunction · 0.85
update_fileFunction · 0.85

Tested by

no test coverage detected