sketch-keyboard-shortcuts
v0.0.7
Published
A command-line utility to manage keyboard shortcuts for Sketch
Downloads
7
Readme
sketch-keyboard-shortcuts
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
, andshift
for modifier keys, andup
,down
,left
, andright
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