RenameIt icon indicating copy to clipboard operation
RenameIt copied to clipboard

Find and Replace Across Entire Document

Open philipamour opened this issue 5 years ago • 4 comments

Recently separated master sketch spec from components and used a different plugin to replace symbols on master sketch spec with instances from sketch library. All worked great but now all symbols have their component name. I have to go through every single page (100+) and run rename it to find and replace stuff on each page. Would it be possible to add feature to find and rename across the entire sketch document? It would save me LITERALLY days of work. ❤️

philipamour avatar Aug 08 '18 10:08 philipamour

I believe it’s possible, I have to take a look at the API. I think the biggest issue would be performance, specially on your case. Let me check on it.

rodi01 avatar Aug 08 '18 15:08 rodi01

Were you able to build the project?

rodi01 avatar Aug 09 '18 14:08 rodi01

Oh, hi. I thought I removed the comment quickly enough. 😂 Just had to sort out how I install global npm packages and update node/npm. Also embarrassingly forgot to run npm install. 🙈 I'm just a designer, man. My colleague managed to get it to work, loading of 'find and replace' takes a bit but quicker than going through many pages manually and running 'find and replace' every single time. Renamed probably 10k+ layers. Was thinking about submitting a pull request but it's hacky and just replaces current behavior, also would probably cater for small fraction of users so dunno what to do. It works tho and saved me at least a day of work.

philipamour avatar Aug 09 '18 15:08 philipamour

I'm a designer too and I also struggle with this whole dev stuff 😂. I'm glad you were able to get it work!

Like I said on my previous comment, my biggest concern is the performance. If you don't mind sharing the code with me, it would be nice. If you don't want to create a pull request, you can just share the code here or you can also email me [email protected]

rodi01 avatar Aug 09 '18 17:08 rodi01