MCPcopy
hub / github.com/catppuccin/catppuccin / scratch

Method scratch

samples/python1.py:266–275  ·  view source on GitHub ↗
(self, output, title=False, position=None, **kwargs)

Source from the content-addressed store, hash-verified

264 output_file.run_command('edit_view', dict(command='insert', output=output))
265
266 def scratch(self, output, title=False, position=None, **kwargs):
267 scratch_file = self.get_window().new_file()
268 if title:
269 scratch_file.set_name(title)
270 scratch_file.set_scratch(True)
271 self._output_to_view(scratch_file, output, **kwargs)
272 scratch_file.set_read_only(True)
273 if position:
274 sublime.set_timeout(lambda: scratch_file.set_viewport_position(position), 0)
275 return scratch_file
276
277 def panel(self, output, **kwargs):
278 if not hasattr(self, 'output_view'):

Callers 1

diff_doneMethod · 0.80

Calls 2

get_windowMethod · 0.95
_output_to_viewMethod · 0.95

Tested by

no test coverage detected