sonburn / symbol-swapper Goto Github PK
View Code? Open in Web Editor NEWSwap the selected symbols and/or symbol instances to a master of the same name in a library.
License: MIT License
Swap the selected symbols and/or symbol instances to a master of the same name in a library.
License: MIT License
I recently had a lot of Zeplin export problems because of symbols that were referencing deleted libraries.
Symbol Swapper can see them, but they show up in the report as foreign, and therefore un-selectable.
It would be great if there was some way to select the instances in the current document, so they could be nuked.
There is a problem since ver. 0.15, Symbol Swapper Library is not working.
I don't use local symbol, all profile is link to library, when i want to swap from A library to B library, it can't work. But i try Swap Selection, it can work.
I like this plugin very much and use it very often, wish you can fix this problem.
Thank you. #
it would be so so so awesome to have a feature here in this dropdown to simply “unlink” from library and include in the document as symbols ... working on files from clients or collegues sometimes the libraries are just not managable or outdated or simply lost ... still you want to update the symbol ... in bigger files though it is sometimes not so easy to find those symbols. but having it here would be a one click exercise
What do you think? Thanks in advance
https://www.dropbox.com/s/mpsummd7b7mo5mq/Screenshot%202018-09-21%2012.06.38.png?dl=0
It would be ideal to have an ability to export the layers that don't get swapped from the popup
When I swap symbol and its copies with the one from a library only the first one keeps its overwrites. Swap siblings & overrides of selected instances is on.
Sketch when swapping local symbols has similar problem - is it them?
I'm updating an old Sketch file to work with a library. Symbol Swapper looked good.
I'm having a problem with an install of the plugin with Sketch 63.1
When I selected a group of symbols in the original file, and use the function "Symbol Swap Selection", it only worked once. A second time, the plugin didn't respond. No alert. Nothing.
Any ideas?
Possibly similar to #44
It's a recurrent problem I have but the plugin is unusable when there's a lot of libraries involved.
It can only display as much libraries as it can depending on the height of the monitor. I have to select the wider scale to gain a spot and then there's just no more options. Can't it be scrollable?
Also, the buttons appeared on the back so the selects are displayed on top which is problematic.
When you have a library with different 'themes', for instance dark
and light
, it would be really powerful to be able to swap multiple symbols when the name contains a certain word.
For instance, I have these symbols:
Forms / Input / Checkbox / Dark
Button / Primary / Dark
I would like to swap them with these symbols:
Forms / Input / Checkbox / Light
Button / Primary / Dark
Some sort of Regular Expression support could be a possible solution for this?
Hi,
I have recently come across symbol swapper for a project that i need to be re-skinned and i am experiencing 2 issues.
I have a current library (Library A) which includes symbols and nested symbols. I have then duplicated library A to Library A copy and thereafter changed the text colours, icon colours and button colours in their different override states on Library A copy.
• Issue 1
When I copy Library A symbols to a new file and then run Symbol Swap Selections some of the nested symbols does not change. For example I have an add button nested symbol in orange, black and grey. When i swap symbols to Library A copy the button does not change to blue which is the colour scheme for the button in Library A copy.
• Issue 2
I have a text style in Library A which has an override of a grey, black and none underline.
I have built a screen that includes the same symbol with the underline hidden (none). When i swap symbols the text style then introduces the symbol with the grey underline selected. Which means i would need to go and select none for each instance that symbol was used.
Are there any solutions for the issues Im currently experiencing?
Thanks in advance
With Sketch 48, I assume Symbols now have some kind of unique ID to be able to copy paste between files. Is there a way symbol swapper could use that ID as well? I have a lot of cases where symbols have been detached, renamed in the master, and now they can't be swapped unless you select each symbol manually, which is very time consuming.
I'm having problem where the dialog just disappears when I select the library which contains the symbol I want to swap the selected item to. I never get to choose the new symbol.
Sketch update plug-in dialog says a new version 0.16 is available but it doesn't download. Manually installing the latest version keeps telling me there is an update.
I have seen this problem with many plug ins the problem that do not report the correct version at all places in the code.
No longer shows the success prompt when symbols are swapped nor does it show which symbols couldn't be swapped.
Any ideas on a fix or other plugins that could help?
@sonburn it seems like when using "Symbol Swap Libraries" option, the symbols are swapped solely based on their ID, and the name of the symbol is ignored?
Example:
I had "mySymbol" and "alternate/mySymbol" in a single library. When I moved all my "alternate/..." symbols to a separate library and renamed them removing the "alternate/..." prefix, the "Symbol Swap Libraries" command doesn't work on them and they are ignored.
What does work is cloning the original library file, and adjusting the original "mySymbol" to the alternate look. That way in keeps the same name, as well as same ID.
However, the second option would be rather tedious manual work for me on dozens, maybe hundreds, of symbols. Would it be possible to select in the dialog whether you want to replace symbols solely based on name match, or on ID match, or matching both, please?
Thank you.
I'm on SKetch Version 59.1 (86144) and latest symbol swapper. I've restarted my computer and sketch but when I highlight one or more symbol and select "Symbol Swap Selections" nothing happens. Symbol Swap Libraries does come up with a window though
Hello, very very nice plug in. But when I try to change a library with an other on, it change the symbole very well but no text style and layer style.
I work on sketch 52.4
Regards, L.LAVAIL
Let's say I have a COMPONENT library w/ 30+ icons.
In Sketch File A - I insert a ton of the shared icons into the document.
Tomorrow a decision is made to move the icons in the COMPONENT library into a separate ICONS library.
Is it possible to select all the shared icon symbols pointing to the COMPONENT library to the ICONS library?
After using the plugin all morning (thank you!) it has suddenly stopped working. Any ideas on what I could do?
When using the plugin, I cannot see "Current Document" when selecting which library to swap.
How to swap for instance, from library to current document symbol which was made local?
Hi Jason!
I was hoping to get a feature enhancement into your backlog. When you do a symbol swap to another library, sometimes a symbol gets ignored because it doesn't exist in the new library. What would be really helpful is an indication of which symbol it is.
Ideally, something like your Symbol Instance Locator dialog to show and access multiple ignored symbols. What would be amazing is both Locator and Swapper would be one plugin 👍
Amazing work BTW, you've saved me and my extremely complex nested Sketch Libraries!!
Cheers
Chris
Thanks for creating a great plugin!
I'm experiencing issues where I get Missing Symbols after using Symbol Swapper (no matter whether I use 'by name', 'by ID' or 'Let me choose...')
I've copied an artboard from a separate file into my master file. As a result, one or two new symbols appear locally in this new file, even though they are Library symbols.
When I use Symbol Swapper to replace these new (duplicated) symbols with the original symbols from their Library, the result is that when I view the instance of these symbols, I get the red error and "Symbol missing" message.
Interestingly, in the 'Let me choose...' dropdown list, there are multiple versions of many symbols:
However, if I try to insert a symbol from this library, I can see that there are no duplicates in the actual library itself:
Are you able to shed any light that may help me to resolve this issue?
I'm having issues with the swap library functionality. I have 2 libraries that have symbol masters of the same names (they are generated from the same source code). I have also have a Sketch file where I am referencing the masters from 1 of those libraries. When I try to swap them, it tells me they weren't found in the new library.
Is it keying on something different than the name of the symbol master's name?
Any help would be greatly appreciated.
Thank you.
The plugin keeps on crashing on my M1 Mac when choosing to swap selected symbols. It crashes Sketch too, so that is a bit unfortunate.
Dear Sonburn,
First of all amazing plugin. I think you already provided me with some helpful answers on sketchplugins.com Hope you are able to help me on this bug as well and in the meantime improve your plugin.
I prepared a sketch file and video demonstrating the issue I found.
https://www.dropbox.com/s/ef294ww3y1hyb3y/nested-symbols-issue.zip?dl=0
possible causes
changeInstanceToSymbol
Does not update the nested symbols
updateOverridesWithObjectIDMap
Does not update ID's of nested symbols
removeFromParent
Changed instances are not removed from the document if they are unused.
Let me know if you need any more input.
I am updating the design system. Some of the components are linked with another ones. The new design system is not listed in "Symbol Swap Libraries" under as replacement for old library.
Will it support libraries?
It is a nightmare right now in Sketch to change all of the symbols from local to the library ones. This plugin could save a ton of hours if we could swap all the symbols with the same name to the selected one (or all with the same name).
I have tried multiple times to swap library symbols with document symbols and it's wrong every time.
Love the plugin, use it constantly.
The one addition I'd love to have is the ability to select "Current Document" from the Symbol Swap Libraries dropdown menus.
It is very common that I use symbols from linked libraries to begin a project but at completion want to combine everything into a single document for ease of delivery.
Was thinking this could be an easy addition, but as i'm not a developer... :)
Thanks again,
— Brien
Hello, I noticed some issues after I updated to the most recent version of the symbol-swapper plugin.
When I point it to a specific symbol from a library using the “Let me choose…” option - it replaces with a wrong symbol. Even the default option, when swapping with a symbol with same name, ends up swapping with a wrong symbol.
Also, if possible can the “Let me choose…” be a combobox (as before) so that we can still type a symbol instance name in it, instead of using just the dropdown list?
Issue:
When using the "Create Inventory Page" the new artboard created has all(?) symbols in the linked/used libraries
Expected behavior:
An artboard with only the symbols of the selected/clicked library is created
Also thanks a lot for this plugin (and also Symbol Instance Locator) two really great plugins!
To let multi memebers improve the library with out pain.
just like coding merge
example:
origin:1 2 3
member A: 1' 2 3
member B: 1 2' 3
merge result : 1' 2' 3
I'm trying to use Symbol Swap Libraries so I can replace all the symbols from Library A with the same (named) symbols in Library B. The dialogue box tells me that the symbols have been swapped and the path to new library changes however the symbols remain unchanged.
Symbol Swap Selections seems to work OK but it won't include overrides
Am I doing something wrong?
Sketch 51.1
High Sierra 10.13.6
Would it be possible to add an option to set all symbols to their original size after swapping?
The use case for this is swapping one skin’s symbols for another (from another library) which has different dimensions, margins, and padding due to typeface differences.
Currently this is possible to do within Sketch by selecting all symbols that have been swapped > right clicking > choosing “Set to Original Size”, but it proves quite cumbersome.
I found that today when I select a symbol and choose "Symbol Swap Selections" no window appears. Version 64 of sketch
Hi,
I updated my Sketch to 54.1 version and I have some trouble with plugin Symbol Swapper.
I can not swapp libraries, if I have many libraries in my list ( in the Sketch).
Can you help me, please?
As soon as I click the dropdown for which library to swap from, Sketch becomes unresponsive and then crashes. Mac Mojave, Sketch 51.3.
Any ideas?
I'm trying to replace a set of symbols by one that is part of the selected items. Those are identical and duplicated items. When selecting the new symbol source from the drawer in the symbol swap selections modal, I cannot tell which symbol is which, that is why I'm selecting all, including the symbol source.
Current Behavior:
Expected:
Thanks for such a great plugin!
Hey there,
Your plugin's been a lifesaver for me!
I have a design system and workflow for creating a bunch of white-labeled applications. What I have now is one set of Sketch files that contain the screens for each application, and then a Library file that contains all the re-usable symbols that are used across those files. What I do is make a copy of that Library, modify the symbols for a different brand, and use Symbol Swapper to change which Library the design files reference. Works great!
But it doesn't help me with text styles. When Sketch 51 came out I was pretty excited to see the shared text styles feature, and moved all my styles into the master Library. But there doesn't seem to be a way to switch which Library a given document references. I have to manually select all instances of each style and drill-in through the Shared Libraries menu to select a different one. That's pretty painful.
Now, if Symbol Swapper had a way to select which Library my text styles are linked to, that would be huge. Finger crossed you can help me out here.
Thanks!
In the new version, the plugin crashes.
To reproduce:
Result: plugin crashes. Sometimes this even happens in between step 3 and step 4
When updating a file with a new component, you sometimes need to swap normal groups to a symbol. You can already do that using the "replace layer with" command, but that doesn't retain the dimensions of the layer you're trying to replace, like it would on a symbol.
usually trigger a hang by clicking into other application and then alt tabbing back to sketch. Almost always hangs for 3-10 seconds.
When selecting which symbol to use for replacement with 'let me choose', the function does not use the selected symbol but a different, wrong one. Why is that?
Any possibility of adding support for swapping nested libraries? Example: Let's say a components library is using few themes (colors) libraries. On my project file I use the components library but I'm able to swap between the nested themes library. Doable?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.