Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Find and Replace Across Entire Document #90

Open
philipamour opened this issue Aug 8, 2018 · 4 comments
Open

Find and Replace Across Entire Document #90

philipamour opened this issue Aug 8, 2018 · 4 comments

Comments

@philipamour
Copy link

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. ❤️

@rodi01
Copy link
Owner

rodi01 commented Aug 8, 2018

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
Copy link
Owner

rodi01 commented Aug 9, 2018

Were you able to build the project?

@philipamour
Copy link
Author

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.

@rodi01
Copy link
Owner

rodi01 commented Aug 9, 2018

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]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants