Skip to content

Core editing

Undo and history

Every edit is a step you can list, undo and redo, and every step says who made it.

Last updated:

You will learn#

Quick start#

Terminal
stuarty history --project prj_7k2m9x4q1b
stuarty undo --project prj_7k2m9x4q1b
stuarty redo --project prj_7k2m9x4q1b

Undo reverts the latest step of the caller that asks, not the latest step of anyone. If another actor changed the same thing since, the step is skipped and the result says why (changed_by_other_actor). Undo is itself a revision, so it can be undone.

Common mistakes#

  • Nothing to undo: E_NOTHING_TO_UNDO. Nothing to redo: E_NOTHING_TO_REDO.

Next steps#