ass_undo_history
List available undo and redo steps for an ASS subtitle document, with snapshot summaries, so you can pick the change to restore.
Instructions
List the undo steps available for a document.
The workspace keeps raw document snapshots and no labels, so the entries are
positional: step 1 is the oldest available snapshot, the highest step is
what :func:ass_undo would restore next. Each entry carries a summary of
the snapshot (line count, first start time, line count difference from the
current state) so it is still possible to tell the steps apart.
Returns {"doc_id", "undo_depth", "redo_depth", "entries": [{"step", "label", "lines", "first_start"}...], "redo_entries": [...], "next_undo", "next_redo"}. Line indices are 0-based.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||