Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find/Replace text but not style #54

Open
elegantscience opened this issue Nov 1, 2017 · 2 comments
Open

Find/Replace text but not style #54

elegantscience opened this issue Nov 1, 2017 · 2 comments

Comments

@elegantscience
Copy link

elegantscience commented Nov 1, 2017

First: this is an excellent plugin. Love it. This issue should in no way detract from that fact. But it's something I've encountered and thought I'd post it.

In a text block in which different styling occurs (e.g.,: text block that might read "This Week: Wombats" one might have colored "This Week:" black, and "Wombats" white. Or another example would be specific, highlighted words in a paragraph) I find that when I do a find/replace changing just one word within that block (e.g., changing all instances of "Wombats" to "Owls") the style of the changed text gets carried over to the entire block of text (e.g., "This Week: Owls" turns all white).

Just thought I'd post it. But maybe I'm missing something.

thanks.

@thierryc
Copy link
Owner

thierryc commented Nov 2, 2017

Than you for your comment.

This issue is a limitation to the Sketch App plugin lib.
The inline style can be restored only if the source and target string length are close.

I leave this issue open.
Any suggestion to fix this issue is welcome.

@thierryc thierryc self-assigned this Nov 2, 2017
@thierryc thierryc added this to the Fix ASAP milestone Nov 4, 2017
@thierryc
Copy link
Owner

thierryc commented Nov 4, 2017

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

No branches or pull requests

2 participants