sketch-keyboard-shortcuts

A command-line utility to manage keyboard shortcuts for Sketch

Usage no npm install needed!

<script type="module">
  import sketchKeyboardShortcuts from 'https://cdn.skypack.dev/sketch-keyboard-shortcuts';
</script>

README

sketch-keyboard-shortcuts npm Version

A command-line utility to manage keyboard shortcuts for Sketch

Quick start

Requires Node.js.

$ npm i -g sketch-keyboard-shortcuts
$ cat shortcuts.json
{
  "Arrange": {
    "Align": {
      "Bottom": "cmd ctrl b",
      "Left": "cmd ctrl l",
      "Right": "cmd ctrl r",
      "Top": "cmd ctrl t"
    }
  },
  "Layer": {
    "Flatten Selection to Bitmap": "cmd shift b"
  }
}
$ sks set shortcuts.json
Set 5 keyboard shortcuts
  • The path to each menu item is specified via a nested JSON object.
  • Each keypress within each shortcut shortcut is separated by a space.
  • Use cmd, ctrl, opt, and shift for modifier keys, and up, down, left, and right for arrow keys.

Usage

$ sks
sks <command>

Commands:
  sks set <file>  Sets keyboard shortcuts as defined in the specified file
  sks unset       Unsets all keyboard shortcuts

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Installation

$ npm i -g sketch-keyboard-shortcuts

License

MIT