Figma Plugin – Text Find and Replace
background
When designing with Figma, we need to deal with the text information of the design draft, especially for interaction designers, we need to write a lot of business logic descriptions.
Existing Problems
The search and replacement of characters can be completed with the help of plug-ins, but there are several problems with the current plug-ins
- Unable to set search scope
- Positioning cannot be precise to the character level
By setting the search range, you can only find and replace characters within a certain range when the document is complex, avoiding changes to places we don’t want to change, and making it more secure to use.
Positioning with character-level precision can get a better focusing experience in scenes with large texts. (Plugins on the market only support layer-level precision).
So far, no plugins have been found that meet the above functions at the same time.
solution
So I developed the plug-in introduced today – Find and Replace.
In terms of search range, it will determine the search range according to whether you have selected a layer. If there is a selected layer, it will search and replace under the selected range, otherwise it will search all layers under the current page. It is also one of the few tools that supports full document search.
Clicking on search results supports targeting with character precision.
~~The problem that cannot be solved at present is that for the text layer with rich text style, the original style cannot be maintained after replacing the text, and it is necessary to pay attention to the follow-up of the official Figma API for follow-up solutions. ~~This has been resolved by optimizing the implementation
Welcome to use and make suggestions
Development Notes
Operational ideas
The relationship between the new increments of plug-ins and the week of the whole Figma site
It is more appropriate to push updates every Tuesday and Wednesday , because the recently updated plugins can get more exposure, and it is also an active period for user installations. Pushing updates at this time can get more installations.
This article is reproduced from: https://sspai.com/post/70863
This site is for inclusion only, and the copyright belongs to the original author.