-
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.
This initial version finds all SymbolInstance layers in a Sketch document and renames them to match their symbol "master".
- Loading branch information
1 parent
f77daaa
commit c2b2fa2
Showing
12 changed files
with
8,844 additions
and
0 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.