MCPcopy
hub / github.com/SirVer/ultisnips / append

Method append

pythonx/UltiSnips/buffer_proxy.py:128–136  ·  view source on GitHub ↗

Same as vim.current.window.buffer.append(), but with tracking changes.

(self, line, line_number=-1)

Source from the content-addressed store, hash-verified

126 return len(self._buffer)
127
128 def append(self, line, line_number=-1):
129 """
130 Same as vim.current.window.buffer.append(), but with tracking changes.
131 """
132 if line_number < 0:
133 line_number = len(self)
134 if not isinstance(line, list):
135 line = [line]
136 self[line_number:line_number] = list(line)
137
138 def __delitem__(self, key):
139 if isinstance(key, slice):

Callers 15

remember_positionMethod · 0.80
_snipsMethod · 0.80
_do_snippetMethod · 0.80
_file_to_editMethod · 0.80
diffFunction · 0.80
_on_bytes_to_editsFunction · 0.80
detect_editsFunction · 0.80
_listener_to_editsFunction · 0.80
get_dot_vimFunction · 0.80
launchMethod · 0.80
add_snippetMethod · 0.80

Calls

no outgoing calls

Tested by 15

setUpMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64
_extra_vim_configMethod · 0.64