RenameIt
RenameIt copied to clipboard
Feature request: Renaming layers to string after last "/"
Layers get messy when you insert a symbol that is part of a well organized Library...
So for example it would be great to have a command to rename all layers to the string after last "/"
Example: "UI / Buttons / Primary Button - Active" becomes: -> "Primary Button - Active"
This would really help make files more usable!
Thank you!
Any thoughts on this @rodi01 ? In general, this is about removing part of the original name. But I understand you probably don't want to overcomplicate the plugin.
The above use case mentioned by @fbmore is actually the most common I run into as well - wanting to remove first part or all parts of "path" in symbol name, i.e. turning the above into "Buttons / Primary Button - Active"
or "Primary Button - Active"
Maybe some advanced mode with the ability to add regular expression? Thank you.
@josefritcher I think adding regular expression would be a good idea, my only concern is that it complicates the plugin. Maybe it should be its own window or a toggle in the rename window. As far as developing the feature I don’t think it would be too hard.
So you would think that regular expression should be available in both renaming and find and replace windows?
@rodi01 I am actually not using the find & replace feature. but maybe just for renaming. and maybe it should be a separate function. but to be honest, there are some other plugins doing the same, e.g. https://github.com/littlebusters/Regexp-Rename and https://github.com/leonardpauli/layer-renamer - so maybe no need to reinvent the wheel. or just copy the code from there or merge the projects - after all, this is all open source cooperation :-)