Skip to content

Commit

Permalink
Added support for Sketch Runner, removed default keyboard shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikFontanel committed Mar 29, 2017
1 parent bf677ac commit b59fdfa
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# Toggle Constrain Proportions
[![GitHub release](https://img.shields.io/github/release/ErikFontanel/sketch-toggle-constrain-proportions.svg)](https://github.com/ErikFontanel/sketch-toggle-constrain-proportions) [![GitHub release](https://img.shields.io/badge/Works%20with-Sketch%20Runner-blue.svg?colorB=308ADF)](http://bit.ly/SketchRunnerWebsite)


A simple plugin that adds a keyboard shortcut for 'Toggle Constrain Proportions'. This plugin is similar to others but this one is made to be compatible with the new plugin methods introduced in Sketch 39. And this plugin is not bundled with any other plugins which you'll probably never use…

## How to install
## Install with Sketch Runner

With Sketch Runner, just go to the `install` command and search for `Toggle Constrain Proportions`. Runner allows you to manage plugins and do much more to speed up your workflow in Sketch. [Download Runner here](http://www.sketchrunner.com).

![Sketch Runner screenshot](https://github.com/ErikFontanel/sketch-toggle-constrain-proportions/screenshot-installation.png?raw=true)

1. [Download the plugin](https://github.com/erikfontanel/sketch-toggleconstrainproportions/archive/master.zip)
2. Double click on the toggleconstrainproportions.sketchplugin file
## Install manually

1. [Download the plugin](https://github.com/ErikFontanel/sketch-toggle-constrain-proportions/releases)
2. Double click on the `toggleconstrainproportions.sketchplugin` file
3. Done

## How to use
1. Select an object
2. Press `⌘ + p` and watch the lock change from 🔒 to 🔓 (and vice versa)
2. Run this plugin and watch the lock change from 🔒 to 🔓 (and vice versa).

### Note
As of 1.1 this plugin does not come with a default shortcut anymore since it's impossible to prevent duplicate shortcut conflicts and because [Sketch Runner](http://bit.ly/SketchRunnerWebsite) makes it easy to run commands.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "Toggle Constrain Proportions",
"identifier": "com.sketchapp.toggleconstrainproportions",
"version": "1.0",
"description": "Toggles the contrain proportions setting with keyboard shortcut cmd p",
"version": "1.1",
"description": "Toggles the contrain proportions setting",
"author": "Erik Gelderblom",
"updateURL": "https://github.com/erikfontanel/toggleconstrainproportions/toggleconstrainproportions.json",
"commands": [{
"script": "script.js",
"handler": "toggleConstrainProportions",
"shortcut": "cmd p",
"name": "Toggle Constrain Proportions",
"identifier": "toggleconstrainproportions"
"identifier": "toggleconstrainproportions",
"description": "Toggle to (un)constrain proportions of the selected layer",
"icon": "icons/toggleconstraints.png",
}]
}
Binary file added screenshot-installation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b59fdfa

Please sign in to comment.