All Projects → bomberstudios → sketch-action-api-tester

bomberstudios / sketch-action-api-tester

Licence: MIT license
A plugin to listen to all the events in the Action API

Projects that are alternatives of or similar to sketch-action-api-tester

Keys For Sketch
Advanced shortcut manager for Sketch app.
Stars: ✭ 281 (+980.77%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Sketch Batch Create Symbols
A plugin for Sketch to convert selected layers to individual symbols.
Stars: ✭ 134 (+415.38%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Sketch Image Compressor
A Plugin for Sketch that compresses your bitmap assets, to keep filesize to a minimum.
Stars: ✭ 338 (+1200%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Artboard Manager
Because moving Artboards manually is *so* 2016
Stars: ✭ 672 (+2484.62%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Ishadow
Creating a beautiful iOS style shadow [Sketch Plugin]
Stars: ✭ 89 (+242.31%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Sketchcrapp
SketchCrapp - Crack your Sketch.app in seconds :) Supports MacOS Big Sur.
Stars: ✭ 218 (+738.46%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Sketch Find And Replace
Sketch plugin to do a find and replace on text within layers
Stars: ✭ 693 (+2565.38%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
autopdfexporter-sketch-plugin
A Sketch Plugin to auto-export all '[S]' Prefix artboards to a single pdf, no slices needed! Plugin auto creates slices from prefixed Artboards and exports them into a single page-sorted pdf file.
Stars: ✭ 16 (-38.46%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Notes
A sketch plugin for taking notes
Stars: ✭ 87 (+234.62%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Svgo Compressor
A Plugin that compresses SVG assets using SVGO, right when you export them.
Stars: ✭ 1,068 (+4007.69%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Sketch Commands
A collection of script commands for Sketch.app
Stars: ✭ 826 (+3076.92%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Overrideit Sketchplugin
Overrideit is sketch plugin that allow designers to search in overridelist and overrides dropdowns, and with many other features.
Stars: ✭ 113 (+334.62%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Sketch Css Sprite Mixin
Generate a code of CSS Sprite Mixin to Clipboard in Sketch.
Stars: ✭ 105 (+303.85%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Camilo
Sketch plugin specially crafted to work in Design systems with multiple themes
Stars: ✭ 175 (+573.08%)
Mutual labels:  sketch-plugin, sketch-app, sketchapp
Pdf Export Sketch Plugin
Sketch plugin for PDF exporting
Stars: ✭ 231 (+788.46%)
Mutual labels:  sketch-plugin, sketch-app
Exporter
A Sketch plugin that exports Sketch artboards into clickable HTML file.
Stars: ✭ 131 (+403.85%)
Mutual labels:  sketch-plugin, sketch-app
Sync To Slides
Sync your Sketch artboards to Google Slides with ease
Stars: ✭ 133 (+411.54%)
Mutual labels:  sketch-plugin, sketch-app
Sketch Potrace
Potrace for Sketch is a bitmap tracing plugin. It converts bitmap images into monochrome vector graphics.
Stars: ✭ 122 (+369.23%)
Mutual labels:  sketch-plugin, sketch-app
sketch-colorfulgradients
🔶 Import colorful gradients as shape fills in Sketch
Stars: ✭ 69 (+165.38%)
Mutual labels:  sketch-plugin, sketch-app
sketchapp-json-plugin
Provides utilities for basing your plugins on the JSON format instead of learning all of the sketch private API objects.
Stars: ✭ 54 (+107.69%)
Mutual labels:  sketch-plugin, sketchapp

Action API Tester

A plugin to listen to all the events in the Action API

Motivation

When working with Sketch’s Action API, sometimes it’s hard to know which actions you should be listening to in your code. This plugin tries to solve that issue by listening for all the actions, and logging some details about them.

Ideally, you’ll just have to install this plugin (see installation for importanr information), do the action you want to listen for in Sketch manually, and check the logs for the relevant action. In practise, it’s not always that simple, but this plugin will definitely save you a lot of guesswork.

Installation

  • Close Sketch
  • Open a Terminal window, and run this: defaults write ~/Library/Preferences/com.bohemiancoding.sketch3.plist actionWildcardsAllowed -bool YES. This is a special setting that enable wildcard listeners in Sketch plugins (keep in mind that this will definitely make your Sketch slower, so make sure to disable it with defaults write ~/Library/Preferences/com.bohemiancoding.sketch3.plist actionWildcardsAllowed -bool NO when you're done developing your plugin)
  • Open Sketch
  • Download the plugin and double click it to install

What is this witchcraft?

The magic happens in manifest.json: you’ll see that, instead of a typical action name, we’re using an asterisk, like this:

"handlers" : {
  "actions": {
      "*": "onAction"
  }
},

If you have enabled the special setting for wildcard actions (see installation if you haven’t), the onAction function will be called for all actions in Sketch.

I have so many questions

Good! Use the Issues in this repo, or send me an email to [email protected], and I’ll be happy to help.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].