DWilliames / paddy-sketch-plugin

Automated padding, spacing and alignment for your Sketch layers
MIT License
2.17k stars 61 forks source link

[Enhancement] Don't ignore text layers prefixed with '-' where the layer name is the text value #66

Closed tikshow closed 6 years ago

tikshow commented 6 years ago

Whenever I like to use a negative value in a text for example -25% and then try to add a padding to it, the padding jumps away because of the Ignoring specific layers mode. Of course it can be solved by simply removing the minus from the layer name.

DWilliames commented 6 years ago

Thanks for this @tikshow!

That's a really good point. I hadn't considered something like this. What do you think would be a good solution for this?

Perhaps layers need to be prefixed with a space after the dash? e.g. '- ' instead of '-' Although, you'd still have the case of people writing text values that may begin with '- ' 🤔

This might be a tricky one to solve without breaking what other people already have set up too.

tikshow commented 6 years ago

Maybe the most straightforward solution would be layer Auto-Rename, so if I add a - value at the start of the text it should remove the - from the layer name. Other then this I have no clue.

jackiecorn commented 6 years ago

I'd propose the solution to be auto renaming any existing text layers starting with a - in the name to have a prefix so it will be -25% in your case, which will not be ignored by paddy.

DWilliames commented 6 years ago

This should now be fixed v1.0.7 – if you find it still doesn't work; then please re-open this issue.