Code Monkey home page Code Monkey logo

symbol-swapper's People

Contributors

sonburn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

symbol-swapper's Issues

Can't select ignored symbols from deleted libraries

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.

screen shot 2018-06-28 at 6 05 16 pm

It would be great if there was some way to select the instances in the current document, so they could be nuked.

Symbol Swapper Library not Working

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. #

Killer feature: unlink from library

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

Loosing overrides in mass swap

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?

Works only once

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

Window height (display a lot of libraries)

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.

not enough space

Feature - Swap symbols by name containing a certain word

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?

Override Symbols Aren't Swapping correctly

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

Doesn't swap symbols with changed naming

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.

Plug in doesn't update

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.

Lost overrides after swapping

• duplicated symbol page into library file (hosted in Abstract)
• swapped all symbols with ones from library
• lost majority of overrides (in nested symbols)

• all symbols names have remained the same

image

Plugin not working in Sketch 61

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?

Symbol Swap Libraries based on name vs on ID

@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.

Symbol Swap Selections not opening window

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

Font and Layer style

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

Does this work replacing Library symbols with the same symbols in another Library?

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?

Feature Request - Ignored Symbols

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

ignored_symbol_message

Duplicate Symbols showing in 'Let me choose...' dropdown list - resulting in Missing Symbols

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:

symbol swapper dropdown has many duplicates

However, if I try to insert a symbol from this library, I can see that there are no duplicates in the actual library itself:

insert library symbol showing no duplicates

Are you able to shed any light that may help me to resolve this issue?

Symbol Swap Libraries not finding symbol masters of the same name in different libraries

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.

Not swapping nested symbols

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

  • a symbol from a library if it contains a nested symbol it does not swap
  • swapped symbols remain in the file as "normal" symbols, and are not cleaned up

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.

Resizable window/panel

Would be possible to make the main window/panel resizable?

The symbols I have been working on all have really long names, its been a bit difficult to work without be able to read its full name.

Screen Shot 2020-01-27 at 9 58 29 AM

Will it support libraries?

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).

Feature Request - Swap library to current document

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

symbol swapping issue in 0.20

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?

Create Inventory Page adds all symbols from all libraries

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!

Replacing Library symbols with the same symbols in another Library

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

“Set to Original Size” after swapping symbols

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.

Feature - Keep New Symbol Source After Deletion Of Duplicates

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:

  • The New Source is getting deleted even when selecting it as new source. Example:

issue

Expected:

  • I would like the new symbol source to be kept even if it's part of the selection for replacement. I feel that selecting a new source should have priority over deleting selection. Result should be like so:

screen shot 2018-08-14 at 11 45 13 am

Thanks for such a great plugin!

Feature Request: Swap Library Text Styles

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!

Plugin Crashes

In the new version, the plugin crashes.

To reproduce:

  1. Open Symbol Swapper
  2. Symbol Swap Libraries
  3. Select a Library and try to swap to another
  4. Click 'Swap'

Result: plugin crashes. Sometimes this even happens in between step 3 and step 4

Request - Enable swapping non-symbols and retain dimensions

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.

Performance Issued on Sketch 52

usually trigger a hang by clicking into other application and then alt tabbing back to sketch. Almost always hangs for 3-10 seconds.

Feature Request

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.