gum-tool-copy-paste

Explain Gum's in-memory copy/paste system for UI elements, states, and animations.

597|79|Updated Mar 11, 2015
One-click install
npx skills add https://github.com/vchelaru/Gum --skill gum-tool-copy-paste
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gum-tool-copy-paste
Source: https://github.com/vchelaru/Gum/tree/main/.claude/skills/gum-tool-copy-paste
Command: npx skills add https://github.com/vchelaru/Gum --skill gum-tool-copy-paste

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers working with Gum often struggle to understand the intricate copy/paste mechanisms, leading to bugs and lost work when moving UI elements, states, or animations.

Core Features & Use Cases

  • In-Memory Clipboard: All copy data stays inside Gum, avoiding system clipboard interference.
  • CopyType & Paste Modes: Handles instance, element, and state copies with recursive or top-level paste options.
  • Multi-Paste Tracking: Smart parent assignment based on selection changes.
  • Undo Integration: Paste actions are recorded as a single undo step.
  • Plugin Hooks & Animation Support: Extends copy/paste behavior for plugins and a separate animation system.

Quick Start

Ask the assistant to explain how Gum determines the parent for a newly pasted instance after changing the selection.

Frequently Asked Questions about gum-tool-copy-paste

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does Gum's copy/paste system handle UI elements without using the system clipboard?

Gum's copy/paste system uses an in-memory clipboard to handle UI elements without using the system clipboard. Copied data stays inside Gum, preventing system clipboard interference during editing.

How do I paste UI elements in Gum without losing their state or animation data?

To paste UI elements in Gum without losing data, use the correct CopyType and paste modes. The system handles instance, element, and state copies with recursive or top-level paste options for accurate duplication.

How does Gum determine the parent for a newly pasted instance after changing the selection?

Gum determines the parent for a pasted instance using multi-paste tracking, which intelligently assigns the parent based on selection changes. This ensures correct parent assignment within the Gum UI editor.

Can I extend Gum's copy/paste behavior using plugins?

Yes, you can extend Gum's copy/paste behavior using plugins. The system provides plugin hooks that allow you to integrate custom logic into the copy and paste operations within the UI editor.

How is undo handled when pasting multiple elements in the Gum UI editor?

Undo handling for pasting multiple elements in the Gum UI editor records all paste actions as a single undo step. This ensures the entire paste operation can be cleanly reversed in one action.