We love your input! We also want to make the contributing process as easy as possible. Please follow these steps and guidelines:
- Fork the repo on GitHub.
- Create a text file with .yml as the file name. For example,
Photoshop.yml
. - Find your app's shortcuts on the internet and add them to your
.yml
file. The yml file should be valid and follow these rules:
- wrap both the shortcut keys and values in double quotes, such as
"Quit App": "Cmd + q"
- Replace
⌃ ⌘ ⌥ ⇧
byCtrl Cmd Opt Shift
, separated by spaces. I find doing so is best for usability and readability. - clean up any trailing whitespace.
- take a look at the files in
/shortcuts
folder as an example.
- Install
nvm
and then runnvm install 8.11.3
to make sure you are running node v8 but not the latest. This is due to one of the dependencies - node-ffi - currently works on v8. My local node version is v8.11.3, but you should be able to use any node versions that's v8. Runnvm ls
to make sure you are using the right version. - Test your commit locally by running
npm install && npm start
. Navigate to your desired app and see if the shortcut shows up in Pretzel. - Make a PR and I will merge it in and let you know.
- Once it's released, if you already have pretzel installed the app will notify you to install an update.
That's it. Thanks again for contributing!