GithubHelp home page GithubHelp logo

sonburn / symbol-organizer Goto Github PK

View Code? Open in Web Editor NEW
838.0 28.0 42.0 1.55 MB

Organize your symbols page alphabetically (including layer list) and into groupings determined by your symbol names.

License: MIT License

JavaScript 100.00%
sketch sketch-plugin symbols symbol-organizer organization

symbol-organizer's People

Contributors

lmjabreu avatar 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

symbol-organizer's Issues

Lost all symbols

Is there any chance to retrieve all symbols?
With Sketch 45 and after running symbol-organizer 11.0.0 I lost all my symbols...

Sketch 45 BUG: Group Titles are misaligned with Symbol Groups

Great plugin! One of the most used plugins that I use in Sketch.

I noticed this bug after downloading the plugin from github master (I downloaded it directly from github to fixed the aforementioned symbol disappearing bug reported for Sketch 45). The symbol group titles are not aligning correctly, see screenshot:

master

Thank you

Apologies for opening a ticket here.

However, I Just wanted to say a BIG thank you for sharing this plugin. I can't tell you what a pleasure it was to re-organise my sketch symbols (mobile components) from a large project in a beautifully ordered manner.

So to state again - a BIG thank you from me (and I'm sure many others)
//Feel free to close or discard this ticket :)
Marcus

This wonderful organizer is not working in Sketch 45.2

When I run the plugin it just turns my symbols page white and nothing happens. I have confirmed the same problem with several other designers on my team.

Any word on a fix for this? I love the plugin and used it all the time.
Thank you.

Feature Request: Specify max column height

In addition to Max Per Row/Column, I'd love the ability to specify the max height of a column. I have a few symbols that are rather large and would prefer if they don't stack so tall or at least don't stack more than a couple. While I'd like my smaller symbols to organize based on # per column.

Symbol organizers not working

Hey,
just run into a weirdest bug. When i run a symbol organizer in my sketch 45.2 it deletes all the symbols in a document.
Am I the only one experiencing this?

Not working for Sketch V.45

Many plugins have stopped working for this version and this is one of them :( are you going to update to match this version? Thanks.

Layout Toggle?

First off, thanks for creating this plugin! It's been a great help in making my symbols page more approachable and organized.

I have an idea if you are open to it? Provide a toggle that would allow you to switch between the current 'vertical' layout and create a new 'horizontal' layout. Horizontal layout would position the symbols from left to right first, then top to bottom.

Artboard Symbols Deleted When Removing Unused Symbols

When "Remove Unused Symbols" is checked and Symbol Organizer is run, it deletes artboards that have been converted into symbols on other pages. Not sure why this happens or how it handles symbol artboards, but would be great if this would not happen. Thanks!

Not working with Sketch 46

After updating to Sketch 46, this plugin just seems to remove all symbols from the page.
Was working fine with Sketch 45.

Labels Overlapping Symbols After Latest Update

Symbol Organizer 12.2 with Sketch 46.2 overlaps the label onto the symbols after this latest update. I wondered if there were some code collision with other plugins, but I deactivated all my other plugins and it still occurs.

Here is my configuration:

Group Definition: 2nd
Display group titles: true
Layout Direction: Vertical
Horizontal Space: 50
Vertical Space: 50
Max Per Row/Column: 10
Reverse layer...: false
Sequentially...: false
Gather symbols...: false
Remove unused...: false

When I updated the configuration and hit OK, it acts like it's suppose to. When I 'Run Symbol Organizer', that's when the overlap happens. See the attached screenshot for more details.

Can anyone else confirm this is happening to them?

Screenshot

Feature request: run Symbol Organizer automatically on specific events

Artboard manager has this feature where it just reorders the artboards when you drag and drop them.

It would be great if Symbol Organizer would do so we don't need to press the shortcut :).

The plugins' manifest has the following events registered, together with their handlers:

"handlers": {
        "actions": {
          "ArtboardChanged.finish": "ArtboardChanged",
          "LayersMoved.finish": "LayersMoved",
          "Duplicate.finish": "Duplicate",
          "HandlerLostFocus": "Resize",
          "ResizeArtboardToFit": "ResizeArtboardToFit",
          "InsertArtboard.finish": "InsertArtboard"
        }
      }

Plugin removes all symbols

Since last major Sketch update (I believe it is 46) plugin does not work anymore. Once executed it removes all symbols.

Symbols Disappear

I just updated to Sketch 45.1 and Craft 1.0.35. Is there a conflict with these updates maybe? When I run the Symbol Organizer my symbols disappear.

Problem with Sketch 45

After using the plugin, all artboards disappear... Can anyone else recreate?

Mac OS 10.12.5

Artboard Symbols being removed

create an artboard and select it and create a “Artboard Symbol” ...
This creates the symbol but still keeps the artboard where it was but its name becomes purple so that it marks - it's a symbol kind of. Changes on this purple artboard will apply to the instances directly.

anyway, when I now select “remove unused” it will remove those artboards for some reason - that's not so cool because they are for sure “used” if they are lying on my stage.

please can you fix this?
many thanks

👌

Just install this just a few seconds ago ...

👌

REQUEST - Gather Symbols on a Non Symbol Page

Any chance there is a way to gather all symbols and group them on a page besides the Symbols page? I'd love to apply the layout possibilities with this plugin to quickly create a stickersheet/component list.

Broken in Sketch 45

When using this in Sketch 45, all symbols are deleted from Sketch and breaks the document

2017-06-28 08_37_32

Sections

Thanks for the plugin, really helpful for creating a UI Kit.

Would it be possible to display Section Headers for the groups, or is that something that Sketch would need to implement?

Ability to organize other pages with symbols

I sometimes do split my symbols page in multiple "normal" pages based on groups. Currently, the plugin seems to organize only the "master" symbols page. Would be nice to organize other pages as well.

All symbols removed instead of orgnized in Sketch 45

Just upgraded to Sketch 45 and the plugin now removes all symbols and artboards instead of organizing them. The dialog appears fine when I run the plugin, but when I hit OK all symbols are removed from the Symbols page.

SF UI Text is deprecated

Apple is now only distributing SF Pro (Text and Display). It's a name only change, but you can no longer download SF UI.

Save Sort Preferences

Hi! Your plugin is amazing- thank you so much!
I use it on all my studio projects now & always have the same preferences for how I want my symbols to be organized. Would save a lot of time if the dialogue box was pre-filled to last use preferences, i.e vertical with X paddings, yes show group titles etc.
Thanks!

Not working with the latest sketch release

When running the organiser on the latest sketch release, sketch loads continuously and isn't responding.

Are you aware of the issue? We've become really reliant on this great plugin as part of our design process, it would be a shame not to be able to use it.

Thanks,
– Joe

Sort only selected symbols

Amazing plugin, made it so much more enjoyable and easy to manage large numbers of symbols!!
Sometime it's would be really useful to choose only a subset of symbols to organize.
Would it be possible to ad a checkbox for only sorting selected symbols?

Feature Request: Artboard Organizer

First: Thanks for making this addon, it makes my day so much better.

Would it be possible to create a sibling addon that organizes artboards on the current page in the same fashion Symbol Organizer does with Symbols?

Feature request: save settings

This is really useful 👍! Would be nice if it could save the settings. Then you can quickly reorganise symbols after adding or deleting some. I prefer A-Z, horizontal and different spacing.

Add a special character to incrementation

Hi!

This is not really a problem but more like a supplication ;)

When I convert my UX to UI in a different file, it happens that I've got duplicate symbols.
I love your plugin, I use it a lot, combined with Rename Instances to find the duplicate symbols in all my artboards.

But in the layers name there's a lot of "1" or "2", so if you add special character to the sequence of duplicated symbols (for example "#") then it will be a lot easier to find the symbols using the search field in the layer panel.

Thanks

Symbols not on stage being removed

currently there is the issue that the plugin removes also symbols which ARE actually used. If I create several icons and create symbols of them #A #B #C. Then create a layout with symbols #A and #B included and create a symbol with nested symbols. Then I would use the sketch inspector and replace the icon #B with #C = The removing “unused” will now remove the #C but actually it is used atm. Please can you add some checking whether a symbol is used by nested-replaced-functionality of sketch? would be so great, thanks!

Feature Request: Visually tag duplicate symbols

Many thanks for this plugin!

To aid with the symbol de-duping process, it would be helpful to visually tag duplicate symbols to see where they are being used across the document. I understand that one of the duplicates may actually be the preferred version, but it would be easy to manually move this visual tag from one symbol to the adjacent duplicate.

I'd also recommend changing the name of the duplicated symbol to something more unique so that you can filter them out in the lower left Sketch pane. Searching for 'Copy x' gives results of Sketch's 'Rename duplicated layers' preference. You can command-select items in the filtered list and quickly replace them with the preferred version.

I'm not a developer, but with a bunch of trial and error I got this to work in version 11.4 with Sketch Beta 46 (44420). Replacing line 180 in ~/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Symbol Organizer.sketchplugin/Contents/Sketch/functions.js with the code below achieves both:


symbol.setName(thisSymbolName + " DUPLICATE " + duplicateSymbolCount);
var rectShape = MSRectangleShape.alloc().init();
rectShape.frame = MSRect.rectWithRect(NSMakeRect(0, 0, symbol.frame().width(), symbol.frame().height()));
rectLayer = [MSShapeGroup shapeWithPath: rectShape];
rectLayer.name  = '*** DUPLICATE SYMBOL ***';
rectLayer.style().addStylePartOfType(0);
rectLayer.style().fills().firstObject().color = MSColor.colorWithRed_green_blue_alpha(255/255,0/255,0/255,0.6);
symbol.addLayers([rectLayer]);

In the configuration pane, the preference could indicate that duplicates will be visually tagged, or a new preference could be added to separate the renaming from the visual tagging.

If a duplicate is found, the plugin could also test the dimensions of each and indicate a change in the symbol name — i.e. LayerName DUPLICATE 1 (check dimensions). Then the user is informed that they may need to go back and clean up their layout while they are replacing symbols.

I see that you've had some thoughts about this in issue #7, and maybe this could be the next step and elaborated on later.

Cheers.

merge symbols (same-named) in symbol library

sometimes sketch creates duplicates of symbols in the library ... this usually happens when you copy-paste from different files. So my idea for your plugin is to somehow merge those duplicates in the library smartly so that in the library there would be NO same-named symbols ... or at least it would rename the “same-named” symbols and give them a number at the end of the name. thanks!

proposals would be:
A.
checkbox “clean symbol names” (description: same-named symbols will be renamed logically)

B.
checkbox “remove same-named-symbols” (identical and same-named symbols will be merged to one and also linked properly in the layout)

REQUEST - More control of rows/columns

It would be awesome if you could add the ability to limit how many rows/columns the organizer creates. Like, similar to how you're allowing a "max per row/column", maybe you could create a similar function to limit how many rows/columns the plugin creates before having to move down/right an create another row/column?

Remove unused symbols

Heads-up: Checking remove unused symbols in the dialogue causes the plugin to not work. Unchecking it, the plugin and its other functions appear to work.

Be able to organize pages with both artboards and symbols

Thanks for a great plugin but currently i can't organize pages that contains both artboards and symbols. Symbol Organizer can only be used on pages with just symbols so this is really annoying because i always need to have a large artboard with all the symbols to export to zepplin so that developers have all the symbols in one place. There's something you can do about this? the older versions worked great.

Thanks again.

More than 4 levels?

Great plugin!

Is it correct, that it only supports folder levels up to 4 levels deep? If I manually add another "label/" in the granularity field, it seems to ignore it?

Support Sketch 45 plugin update system

Hi there!

This is a quick note to remind you that Sketch 45 will include a plugin update system.

It would be awesome if you could add support to it (it's really easy!) before Sketch 45 comes out. Ideally, you should release an update for your plugin while we're still in Sketch 44, so your users will have a nice & easy experience when 45 is released.

For more details, please check http://sketchplugins.com/d/229-updating-plugins and http://developer.sketchapp.com/introduction/updating-plugins/

Thanks in advance!

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.