Motion kit command

shortcut.list

List Keyboard Shortcuts

Lists commands with their keyboard shortcuts; `query` filters by words in label, command or keys, `keys` finds what a key combination does, `assigned: true` only bound commands.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of shortcut.list
NameTypeRequiredDescription
assignedbooleanno
keysstringno
querystringno

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "shortcut.list" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: assigned, keys, query. motion_run answers the step’s result in completed[i].result.

Result

Result of shortcut.list
NameTypeRequiredDescription
commandsobject[]no
countintegerno
presetstringno
presetsstring[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "commands": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "command": {
            "type": "string"
          },
          "defaults": {
            "items": {},
            "type": "array"
          },
          "key": {
            "type": "string"
          },
          "keys": {
            "items": {},
            "type": "array"
          },
          "label": {
            "type": "string"
          },
          "path": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scope": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "count": {
      "type": "integer"
    },
    "preset": {
      "type": "string"
    },
    "presets": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "assigned": {
      "type": "boolean"
    },
    "keys": {
      "type": "string"
    },
    "query": {
      "type": "string"
    }
  },
  "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.