apple-text-undo

Community

Predictable undo/redo for Apple text editors.

Authorsitapix
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Undo/redo management for Apple text editors, ensuring reliable grouping, coalescing, and correct inverse edits across TextKit 1/2 and NSTextStorage.

Core Features & Use Cases

  • Built-in undo support in UITextView/NSTextView via the undoManager and processEditing lifecycle.
  • Programmatic edits become undoable when routed through textStorage with beginEditing/endEditing.
  • Grouping and coalescing programmatic edits to behave as a single undo operation, with explicit beginUndoGrouping and endUndoGrouping.
  • Support for custom NSTextStorage subclasses and TextKit 2 patterns, including performEditingTransaction semantics.
  • Common pitfalls and guardrails to prevent misregistrations or broken undo chains.

Quick Start

Explain how to implement and debug undo/redo in a custom text editor using NSTextStorage and UndoManager.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: apple-text-undo
Download link: https://github.com/sitapix/apple-text/archive/main.zip#apple-text-undo

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.