WarUI

Atomic undo/redo of range operations

GRID-A12-F21P0baselinePlanned

Every range operation (paste, cut-move, fill, clear) is one atomic entry in the undo stack. Ctrl/Cmd+Z and Ctrl/Cmd+Shift+Z or Ctrl+Y undo and redo the whole operation and restore the selection that was active before it.

Planned. This page shows the specification from issue #191. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with a history panel that lists the stack entries.

Expected behavior

Each operation adds one labelled entry, for example "Paste 500 cells". Undo restores the values and the selection. Any new edit after an undo clears the redo branch.

Planned API surface

undoRedo.enabledundoRedo.limitundo()redo()canUndo()canRedo()history:change

Acceptance criteria

  • An undo restores every cell of the operation or none of them (pending)
  • The selection is restored to its state before the operation (pending)
  • The stack limit drops the oldest entries (pending)
  • Undo skips entries whose rows were deleted and reports them (pending)