Motion kit command
shortcut.set
Set Keyboard Shortcut
Binds keys to a `command` (with `params` when the binding passes some): `keys` "Cmd+Shift+K", a list, or null to unbind. Editing the default preset creates a custom copy. Returns keys and conflicts.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
command | string | no | |
keys | string | no | "Cmd+Shift+K" | [keys] | null |
params | any | no |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "shortcut.set" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: command, keys, params. motion_run answers the step’s result in completed[i].result.
Result
Result JSON Schema
json
{
"description": "The command's answer"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"command": {
"type": "string"
},
"keys": {
"description": "\"Cmd+Shift+K\" | [keys] | null",
"type": "string"
},
"params": {}
},
"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.