MCPcopy Create free account
hub / github.com/cogentcore/core / SaveAs

Method SaveAs

texteditor/buffer.go:440–442  ·  view source on GitHub ↗

SaveAs saves the current text into given file; does an editDone first to save edits and checks for an existing file; if it does exist then prompts to overwrite or not.

(filename core.Filename)

Source from the content-addressed store, hash-verified

438// SaveAs saves the current text into given file; does an editDone first to save edits
439// and checks for an existing file; if it does exist then prompts to overwrite or not.
440func (tb *Buffer) SaveAs(filename core.Filename) { //types:add
441 tb.SaveAsFunc(filename, nil)
442}
443
444// saveFile writes current buffer to file, with no prompting, etc
445func (tb *Buffer) saveFile(filename core.Filename) error {

Callers

nothing calls this directly

Calls 1

SaveAsFuncMethod · 0.95

Tested by

no test coverage detected