Motion kit command
edit.history.goto
Go to History State
jump to a state by `index` (from `edit.history.list`), `id`, or `steps` along the working line (negative = back, like Undo).
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | string | no | an id; one of several alternative parameters |
index | integer | no | (from edit.history.list) | id? | steps? (negative = back along the line) |
redo | integer | no | read by the command beside its listed parameters |
steps | any | no | negative = back along the line; one of several alternative parameters |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "edit.history.goto" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: id, index, redo, steps. motion_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"id": {
"description": "an id; one of several alternative parameters",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"index": {
"description": "(from edit.history.list) | id? | steps? (negative = back along the line)",
"type": "integer"
},
"redo": {
"description": "read by the command beside its listed parameters",
"type": "integer"
},
"steps": {
"description": "negative = back along the line; one of several alternative parameters"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.