MCPcopy Create free account
hub / github.com/JacquesLucke/code_autocomplete / replace_current_word

Method replace_current_word

text_block.py:129–131  ·  view source on GitHub ↗
(self, new_word)

Source from the content-addressed store, hash-verified

127 return re.search(pattern, self.current_line)
128
129 def replace_current_word(self, new_word):
130 self.delete_current_word()
131 self.insert(new_word)
132
133 def delete_current_word(self):
134 match = re.search("\w*$", self.text_before_cursor)

Callers 1

executeMethod · 0.80

Calls 2

delete_current_wordMethod · 0.95
insertMethod · 0.95

Tested by

no test coverage detected