Skip to content

Commit

Permalink
Initial v0.1.0 plugin version
Browse files Browse the repository at this point in the history
This initial version finds all SymbolInstance layers in a Sketch document and renames them to match their symbol "master".
  • Loading branch information
lewishowles committed Aug 5, 2024
1 parent f77daaa commit c2b2fa2
Show file tree
Hide file tree
Showing 12 changed files with 8,844 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# build artifacts
rename-symbol-instances.sketchplugin

# npm
node_modules
.npm
npm-debug.log

# mac
.DS_Store

# WebStorm
.idea

# sketch
# sketch-assets
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## v.0.1.0

This initial release of Sketch nudge font size adds one command:

- **Rename symbol instances** - rename the layer of each symbol instance found in the document based on its originating symbol's name
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Sketch rename symbol instances

This plugin allows you to rename all symbol instances in the current document to match the original symbol in its library.

## Why?

When adding a symbol from a library, by default the layer is named based on the symbol name in the library. However, if you then swap that symbol for another—for example when changing an icon—the original name remains and instances are no longer sensibly named. This plugin fixes that and keeps things neater and more sensible.

## How?

The plugin simply finds each symbol instance in the current document and copies the name from its originating symbol.

## Installation

- Download and unzip the [latest release](../../releases/latest) of the plugin
- Double-click on `sketch-rename-symbol-instances.sketchplugin`
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c2b2fa2

Please sign in to comment.