sketch-style-libraries icon indicating copy to clipboard operation
sketch-style-libraries copied to clipboard

Push to multiple files

Open zakovska opened this issue 6 years ago • 3 comments

Hey, great plugin!

It's made my life a LOT easier with projects that have multiple library files etc. Something that would be very useful is the ability to push to multiple files at once (ex. checkbox selection) instead of having to push to each file separately.

Thanks again! 🍺

zakovska avatar Apr 19 '18 13:04 zakovska

Hi @zakovska thanks for the feedback, I'm happy to hear the plugin has been helpful! Just to make sure I understand your workflow: you have multiple libraries for the same project, containing different components in each? Do you need to pull styles from multiple libraries as well, do all the libraries contain the same styles?

sigtm avatar Apr 23 '18 12:04 sigtm

@sigtm thanks for the reply.

Yes, I've got multiple library files for a single project that have different components, and usually multiple "working/design" files too.

Most of the time I need to keep the styles synced between all of those files. So when I create/change a style in one library file, I need to push those changes to another library file and a few design files at the same time. With the current version I can push to other library files one by one, and then need to open each design file, and pull from any of the library files.

I don't think pulling styles from multiple libraries would be necessary if the above use case is possible.

Is it even possible tho to push to non-library files?

zakovska avatar Apr 23 '18 14:04 zakovska

In theory, yes, it is possible for a plug-in to edit the styles in any file really. Although when I decided to create this plugin the idea was to just add style support to libraries, and tie it in with existing library based workflows. So I'm reluctant to add a file picker to let you push/pull from arbitrary files – just cause I have limited time to maintain it, so keeping the complexity low is crucial in order to be able to keep the features it does have up to date.

I'll consider adding a checklist for syncing to/from multiple libraries though, that one hadn't occurred to me. Just gotta have a think about how it fits with everything else, but off the top of my head I guess I don't see why not :)

sigtm avatar Apr 26 '18 12:04 sigtm