Skip to content

Commit cb31f07

Browse files
committed
Add search scope option for all objects. (Wording)
1 parent 1387192 commit cb31f07

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

Find And Replace.sketchplugin/Contents/Sketch/FindAndReplace.sketchscript

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
var FindAndReplace = function (context) {
1010

1111
var presets, userDefaults, document, selection, textToFind, textToReplace, searchScope, matchRegex, matchRegexStart, matchRegexEnd, matchRegexCase, REPLACE_ALL, READY_TO_SEARCH, CANCELLED, NOT_READY, itemsMatched;
12-
var version = '1.24';
12+
var version = '1.25';
1313

1414
// Initialise
1515
initialise(context);
@@ -53,7 +53,7 @@ var FindAndReplace = function (context) {
5353
CANCELLED = false;
5454
NOT_READY = null;
5555

56-
// If the selected layer is a text layer, bring the text in automatically
56+
// If the selected object is a text layer, bring the text in automatically
5757
if (selection && selection.count() == 1 && selection[0].class() == MSTextLayer) {
5858
textToFind = selection[0].stringValue().trim();
5959
}
@@ -105,7 +105,7 @@ var FindAndReplace = function (context) {
105105

106106
// Text for modal
107107
userInterface.setMessageText("Find and Replace");
108-
userInterface.setInformativeText("Finds and replaces text items in the selected layer(s) or the complete document. " + version );
108+
userInterface.setInformativeText("Finds and replaces text items in the selected object(s) or the complete document. " + version );
109109

110110
// Find text input
111111
userInterface.addTextLabelWithValue("Find");
@@ -117,7 +117,7 @@ var FindAndReplace = function (context) {
117117

118118
// Scope
119119
userInterface.addTextLabelWithValue("Search scope");
120-
var options = showScopeOptions ? ['Whole document', 'Current page', 'Selected layer' + ([selection count] > 1 ? "s" : "")] : ["Whole document","Current page"];
120+
var options = showScopeOptions ? ['Whole document', 'Current page', 'Selected object' + ([selection count] > 1 ? "s" : "")] : ["Whole document","Current page"];
121121
userInterface.addAccessoryView(createRadioButtons(options, (showScopeOptions ? searchScope : 1)));
122122

123123
// Case-sensitivity
@@ -291,7 +291,7 @@ var FindAndReplace = function (context) {
291291
break;
292292

293293
case 2:
294-
// Loop through all the selected layers
294+
// Loop through all the Selected objects
295295
for (var i = 0; i < [selection count]; i++) {
296296
searchInLayer(selection[i], true);
297297
}

Find And Replace.sketchplugin/Contents/Sketch/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Martin Steven and Thierry Charbonnel",
55
"authorEmail" : "thierry.charbonnel@autreplanete.com",
66
"homepage": "https://github.com/thierryc/Sketch-Find-And-Replace/",
7-
"version": "1.24",
7+
"version": "1.25",
88
"identifier": "cx.ap.sketch-find-and-replace",
99
"icon" : "sketch-find-and-replace.png",
1010
"updateURL": "https://raw.githubusercontent.com/thierryc/Sketch-Find-And-Replace/master/Find%20And%20Replace.sketchplugin/Contents/Sketch/manifest.json",
181 KB
Binary file not shown.

appcast.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
<link>https://raw.githubusercontent.com/thierryc/Sketch-Find-And-Replace/master/appcast.xml</link>
66
<description>Finds text in selected layer(s) and all layers contained within - and replaces it with different text. Features partial, case sensitive and full-document matching.</description>
77
<language>en</language>
8+
<item>
9+
<title>1.25</title>
10+
<description>
11+
<![CDATA[
12+
<ul>
13+
<li>Add icons</li>
14+
</ul>
15+
]]>
16+
</description>
17+
<pubDate>Mon Jun 18 09:59:00 EDT 2018</pubDate>
18+
<enclosure url="https://github.com/thierryc/Sketch-Find-And-Replace/archive/1.25.zip" type="application/octet-stream" sparkle:version="1.25"/>
19+
</item>
820
<item>
921
<title>1.24</title>
1022
<description>

0 commit comments

Comments
 (0)