Support for finding symbols #14
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sometimes I'm not sure if I have used the name of my symbol already. If I use accidentally the same name twice, bad things will happen. Like if I already had a "button" symbol on this document on another page and I just forgot about it, old ones would be replaced.
With this simple approach I can check if there's other symbols with same tag name before syncing.
It's basically a copy of the original "Sync Symbol.sketchplugin" file, but I removed bunch of code and added a simple counter with an alert telling how many symbols are found and on what pages.
It would probably be prettier if we'd combine the common code into a library file and import the library.
(This is a redone pull request as I forgot to branch last time.)