Skip to content

Undo and Redo

Step backwards through your recent edits, or re-apply them after an undo, in every entity editor and side panel. Each open editor and panel keeps its own history, so an undo in one place does not affect your edits elsewhere.

Use the Keyboard Shortcuts

Action Windows / Linux macOS
Undo Ctrl+Z Cmd+Z
Redo Ctrl+Y or Ctrl+Shift+Z Cmd+Shift+Z

Where Undo and Redo Work

Undo and redo work in:

  • Entity editors: Stationary Process, Transportation Process, Flow, Transportation Mode, Vehicle, Pathway, Pathway Mix, Global Parameters, Impact Method, Impact Category and Conversions.
  • Side panels:
    • The Transportation Drawer (the step-edit side panel in the Transportation Process editor)
    • The Actions Drawer (the Notes, Allocation, Displacement Resources and Emission Ratio editors)
    • The Formula / Time Series editor

How History Is Scoped

Each editor or panel keeps its own undo history:

  • If you open three Flow editors, you have three histories, one per tab.
  • When a side panel (for example, the Allocation or Displacement views) or the formula editor is open, the shortcut applies to the topmost panel first.
  • When you confirm and close a panel, the shortcut applies to the tab below again. All the edits you made in the panel become one step in that tab's history.
  • Switching between tabs keeps each tab's history. When you return to a tab, its undo and redo steps are still there.

What Counts as One Undo Step

PyGREET groups related changes so that one action of yours is one undo step:

  • Rapid edits to the same field, such as typing several digits into a number input, merge into one step within a short window. You do not undo once per keystroke.
  • Automatic changes that follow your edit are part of your action, so one undo reverses both. Examples: selecting "Account for backhaul travel" in the transportation step editor, clearing the energy intensity field, or the carbon relations updating when you add an input to a Stationary Process.
  • Confirming a side panel is one step in the parent editor. Undoing in the parent editor after you confirm a panel reverts all the changes the panel made, in one step.

Confirm or Cancel a Panel

Choice History of the panel Effect on the parent editor
Confirm Cleared The changes apply to the parent editor as one undoable action.
Cancel Cleared and discarded No changes. The cancellation itself has nothing to undo.

When History Resets

Saving clears the history

Saving an entity clears its edit history. After a save, you cannot undo the edits you made before it.

  • Closing a tab clears that editor's undo history. If you reopen the entity, the history starts empty.
  • Undo and redo apply only to changes you make after you open the entity or panel. They do not roll back changes you saved in earlier sessions.

Next

Save or discard your changes.