sketch-dynamic-button-3.5 icon indicating copy to clipboard operation
sketch-dynamic-button-3.5 copied to clipboard

Command to update multiple button symbols

Open walmink opened this issue 8 years ago • 9 comments

The symbol support is great! Two things that could further improve efficiency:

  1. Allow cmd+j to work on all symbols selected (currently, it only affects one)
  2. Separate shortcut to update all symbols in the document (apart from making sure all your buttons are up-to-date without having to check individually, it's also a nice shortcut that means you don't have to select the button you've just changed the label of and what to update)

walmink avatar Feb 24 '17 12:02 walmink

Can you elaborate more on point 2 with an example?

fuggfuggfugg avatar Mar 02 '17 02:03 fuggfuggfugg

Agree with Fugg, can you elaborate on how you would use thaf feature? Why would it improve your workflow? On Wed, Mar 1, 2017 at 6:03 PM fuggfuggfugg [email protected] wrote:

Can you elaborate more on point 2 with an example?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fuggfuggfugg/sketch-dynamic-button-3.5/issues/23#issuecomment-283533322, or mute the thread https://github.com/notifications/unsubscribe-auth/AMXFVCVIhGEFmx09chdkUYh3L6_IYpJ-ks5rhiOHgaJpZM4MLKP0 .

JWhiteUX avatar Mar 02 '17 07:03 JWhiteUX

Happy to elaborate!

Using the "global" shortcut to update all buttons would mean you can change a bunch of button labels and then update them all at once, without a need to select or check them individually (especially when combined with Auto-Layout plugin, the alignment could automatically update too, so you don't have to reposition it afterwards)

My second point of not having the select the button afterwards to do the update is irrelevant, as I just noticed you can do the cmd+j shortcut while the selection is on the input field of a symbol (used to update the button label).

walmink avatar Mar 02 '17 10:03 walmink

The first issue is already fixed on the branch. Thanks for reporting.

Using the "global" shortcut to update all buttons would mean you can change a bunch of button labels and then update them all at once

Makes sense but currently there's no good way to identify if a component is a dynamic button or not. Cannot rely on the name of the layers since users can change. Once I have a solution, then it opens up door to other possibilities eg: Run dynamic button on text change.

Also haven't played with Auto-Layout plugin, will check it out.

fuggfuggfugg avatar Mar 02 '17 14:03 fuggfuggfugg

Can I close this for now?

fuggfuggfugg avatar Mar 06 '17 02:03 fuggfuggfugg

Yup, if you don't have a sure way of identifying buttons, then it's not possible for now. I'll have a look if there is a plugin to select one symbol and then through a shortcut select all the same symbols!

walmink avatar Mar 06 '17 09:03 walmink

@WWalmink

Actually I may have a way to tag a component once a plugin is run the first time. The subsequent times you run a plugin, I may be able to detect based on the tag.

fuggfuggfugg avatar Mar 06 '17 17:03 fuggfuggfugg

Hm, that's pretty cool, but also a little hard to predict, as the user cannot see which buttons have or haven't been triggered before. Limiting it to symbols (of which there typically are only a few) might be a solution? So any instance of a symbol tagged as a button will update with the global shortcut. Just an idea.

walmink avatar Mar 07 '17 18:03 walmink

Is your request similar to this

fuggfuggfugg avatar Mar 07 '17 20:03 fuggfuggfugg