sketch-keyboard-shortcuts

0.0.7 • Public • Published

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

Package Sidebar

Install

npm i sketch-keyboard-shortcuts

Weekly Downloads

3

Version

0.0.7

License

MIT

Unpacked Size

8.57 kB

Total Files

14

Last publish

Collaborators

  • yuanqing