Sketch plugin for resizing, aligning and generally manipulating layers wickedly
Switch branches/tags
Nothing to show
Clone or download

README.md

Push and Shove

A tiny Sketch plugin for manipulating layers in various evil ways:

  • Resize layers backwards (from the bottom right edge) by just adding ^ to your combo: ^ ⌘ β†’ (ctrl + cmd + any arrow key) and ^ ⇧ ⌘ β†’ for 10px (ctrl + shift + cmd + any arrow key)

Like this

Resize layers backwards

  • Move layers half a pixel in any direction with ^ βŽ‡ β†’ (ctrl + alt + any arrow key)
  • Resize layers half a pixel in any direction with ^ ⇧ βŽ‡ β†’ (ctrl + shift + alt + any arrow key)

And this

Move layers half a pixel to align odd sized shapes

  • Align layers horizontally and vertically accuretly (similar to "Pixel Fitting" setting) with ⌘ [ and ⌘ ] (cmd + bracket keys).
  • Align layers horizontally and vertically to artboard with ⌘ βŽ‡ [ and ⌘ βŽ‡ ] (cmd + alt + bracket keys).

Or maybe this

Align layers accuretly

Also:

  • Toggle the proportions constraint of layers with ^ ⌘ c (ctrl + cmd + C).
  • Replace a layer with one(s) you've just copied with ^ ⇧ ⌘ v (ctrl + shift + cmd + V).

How to Install

  1. Download and open push-and-shove-master.zip
  2. Open push-and-shove.sketchplugin (Sketch will automatically install the plugin)

Notes

  • Tested on Sketch 3.8.3
  • Toggle proportions constraint works with any layers except for text and slices
  • Since Sketch 3.7, canvas somtimes flashes after performing one of the plugin actions, haven't figured out yet how to fix this :)