-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Sketch Runner, removed default keyboard shortcut
- Loading branch information
1 parent
bf677ac
commit b59fdfa
Showing
4 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Binary file added
BIN
+3.27 KB
...nstrain Proportions.sketchplugin/Contents/Resources/icons/toggleconstraints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions
9
Toggle Constrain Proportions.sketchplugin/Contents/Sketch/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.