Smart Truncate plugin for Sketch, truncates text in selected layers, symbol overrides or even all overrides of all instances of selected symbol master to given length.
Download the latest release, unzip and double click on the .sketchplugin file.
Search for Smart Truncate in Sketchrunner or Sketchpacks.
All plugin commands have 4 scopes depend on your selection.
If your selection have any text layers; command will be applied on all text layers in your selection.
If you select overrides directly; all text overrides in your selection will be truncated.
If you select instances of same symbol; like symbol master, first you will be asked to choose which text overrides will be truncated, then all chosen overrides of selected symbols will be truncated.
If you select a symbol master; first you will be asked to choose which text overrides will be truncated, then all chosen overrides of all instances of the symbol will be truncated.
Plugin have several truncate methods and text parts.
Keeps starting part of text in given length including suffix. Removes any punctation and space character before suffix.
Keeps starting words of text in given length. Removes any punctation and space character before suffix.
Keeps starting words in given character length at maximum. Keeps first word whole if it is londer than given character length. Removes any punctation and space character before suffix.
Keeps ending part of text in given length including suffix. Removes any punctation and space character after suffix.
Keeps ending words of text in given length. Removes any punctation and space character afer suffix.
Keeps ending words in given character length at maximum. Keeps last word whole if it is londer than given character length. Removes any punctation and space character after suffix.
Keeps starting and ending parts of text in given length including suffix. Removes any punctation and space character before and after suffix.
Keeps starting and ending words of text in given length. Removes any punctation and space character before and afer suffix.
Keeps starting and ending words in given character length at maximum. Keeps first and last words whole if they are londer than half of the given character length. Removes any punctation and space character before and after suffix.
Plugin lets you define a custom suffix to place in truncated part.