A small modeling change can have a large effect: a misplaced move, an unintended edit, or a construction step that takes a structure in the wrong direction. When that happens, undo is an obvious first response—but in a molecular modeling workflow, it helps to know what the history can and cannot reverse before relying on it.
In SAMSON, each document has its own history: a list of undoable actions performed in that document. You can use this history to revisit earlier document states while editing, building, or moving structures. The key point is that history is document-specific, and not every operation is necessarily reversible.
Open the history before guessing
To inspect the history, choose Interface > History. You can also open it with Ctrl+3 on Windows or Linux, or Cmd+3 on Mac. The History view gives you a way to move through recorded actions and document states. Instead of repeatedly pressing a shortcut and hoping you stop at the right point, use the view to inspect the available history and choose a state deliberately.

Undo and redo, in practical terms
Undo moves back through undoable actions. Redo moves forward again through actions that were undone. You can invoke these commands from the Edit menu or use the keyboard:
- Undo: Ctrl+Z on Windows and Linux; Cmd+Z on Mac.
- Redo: Ctrl+Y on Windows and Linux; Cmd+Y on Mac.
You can also click actions in the History view to move through the document’s recorded states. This can be useful when a result looks different from what you intended: inspect the sequence, return to an earlier point, and check the structure before continuing. The history is not just a rescue button; it can help you understand which recorded steps led to the current state.

The important limitation: not every operation can be undone
Some operations are not undoable. The documentation warns that when non-undoable operations occur between undoable ones, SAMSON may not be able to undo the surrounding operations properly. This can result in data loss. So, undo should not be treated as a guaranteed rewind of every action in a modeling session.
A cautious approach is especially useful when you are unsure whether an operation is reversible. Open the History view and review the recorded actions before making a series of further changes. If you are trying a transformation or constructing a molecule, check the result as you go rather than assuming every step can later be rolled back. When an operation cannot be undone, the history may not provide a reliable route back to the state you expected.
A simple recovery routine
- Pause when something looks wrong. Avoid adding more edits until you have checked the current state.
- Open Interface > History or use the platform shortcut for your operating system.
- Review the available actions. Use the History view to navigate among the document states represented there.
- Use Undo or Redo carefully. Keyboard shortcuts are convenient, but the history view makes it easier to inspect the sequence.
- Remember the limitation. If non-undoable operations are involved, a complete or reliable reversal may not be possible.
This approach is useful whether you are editing a structure, building a molecule, or testing object movements. History can make experimentation easier, provided you treat it as a record of undoable actions—not as a guarantee that every operation can be reversed.
For the full explanation and interface details, see the SAMSON History: Undo and redo documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
