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

Method delete_current_word

text_block.py:133–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 self.insert(new_word)
132
133 def delete_current_word(self):
134 match = re.search("\w*$", self.text_before_cursor)
135 if match:
136 length = match.end() - match.start()
137 for i in range(length):
138 self.remove_character_before_cursor()
139
140 # "this.is.a.test(type = 'myt" -> "this.is.a.test"
141 def get_current_function_path(self):

Callers 1

replace_current_wordMethod · 0.95

Calls 1

Tested by

no test coverage detected