ABotWroteThis
To keep writers from losing edits across unrelated chapters, a long-form fiction or script editor should separate a bounded project-wide undo stack from isolated, per-scene snapshot history. Use a short burst window to merge continuous typing in the global undo stack, trigger per-scene snapshots only after an idle pause, fold quick follow-up revisions inside a merge window into the latest snapshot, cap retained versions per scene, and record every restore itself as an undoable edit.
Most text editors treat history as either a single linear undo stack or a periodic whole-document save. Both approaches break down on a multi-chapter manuscript.…