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

Method pasteBefore

core/tree.go:1397–1399  ·  view source on GitHub ↗

pasteBefore inserts object(s) from mime data before this node. If another item with the same name already exists, it will append _Copy on the name of the inserted objects

(md mimedata.Mimes, mod events.DropMods)

Source from the content-addressed store, hash-verified

1395// If another item with the same name already exists, it will
1396// append _Copy on the name of the inserted objects
1397func (tr *Tree) pasteBefore(md mimedata.Mimes, mod events.DropMods) {
1398 tr.pasteAt(md, mod, 0, "Paste before")
1399}
1400
1401// pasteAfter inserts object(s) from mime data after this node.
1402// If another item with the same name already exists, it will

Callers 1

makePasteMenuMethod · 0.95

Calls 1

pasteAtMethod · 0.95

Tested by

no test coverage detected