---
title: "shortcut.preset: Keyboard Shortcut Preset — Motion kit command — Kition"
description: "Manages keyboard shortcut presets: `op` select (`name`), new, duplicate (`from`), delete or rename (`newName`)."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/shortcut.preset"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/shortcut.preset](https://developer.kition.ai/docs/kits/motion/commands/shortcut.preset)

# shortcut.preset

**Keyboard Shortcut Preset.** Manages keyboard shortcut presets: `op` select (`name`), new, duplicate (`from`), delete or rename (`newName`).

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | `string` | no |  |
| `name` | `string` | no |  |
| `newName` | `string` | no |  |
| `op` | `"select" \| "new" \| "duplicate" \| "delete" \| "rename"` | no |  |

## Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `from`, `name`, `newName`, `op`. motion_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `preset` | `string` | no |  |
| `presets` | `string[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "preset": {
      "type": "string"
    },
    "presets": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "from": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "newName": {
      "type": "string"
    },
    "op": {
      "enum": [
        "select",
        "new",
        "duplicate",
        "delete",
        "rename"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
