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

Method pasteAfter

core/tree.go:1404–1406  ·  view source on GitHub ↗

pasteAfter inserts object(s) from mime data after 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

1402// If another item with the same name already exists, it will
1403// append _Copy on the name of the inserted objects
1404func (tr *Tree) pasteAfter(md mimedata.Mimes, mod events.DropMods) {
1405 tr.pasteAt(md, mod, 1, "Paste after")
1406}
1407
1408// treeTempMovedTag is a kind of hack to prevent moved items from being deleted, using DND
1409const treeTempMovedTag = `_\&MOVED\&`

Callers 1

makePasteMenuMethod · 0.95

Calls 1

pasteAtMethod · 0.95

Tested by

no test coverage detected