Skip to content

Commit ed3807c

Browse files
authored
Merge pull request #53 from thierryc/count-symbol
count symbol overrides
2 parents 1e5af4f + dda76c9 commit ed3807c

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ var FindAndReplace = function (context) {
402402
overrides[index] = searchInSymbolsInception(overrides[index]);
403403
} else if(overrides[index].class().isSubclassOfClass_(NSString.class()) ) {
404404
if (overrides[index] && overrides[index].trim() && overrides[index].trim().match(matchRegex)) {
405+
itemsMatched++;
405406
overrides[index] = replaceValue(overrides[index], textToReplace);
406407
}
407408
}
@@ -417,6 +418,7 @@ var FindAndReplace = function (context) {
417418
overrides[index] = searchInSymbolsInception(overrides[index]);
418419
} else if(overrides[index].class().isSubclassOfClass_(NSString.class()) ) {
419420
if (overrides[index].trim() && overrides[index].trim().match(matchRegex)) {
421+
itemsMatched++;
420422
overrides[index] = replaceValue(overrides[index], textToReplace);
421423
}
422424
}

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.13",
7+
"version": "1.14",
88
"identifier": "cx.ap.sketch-find-and-replace",
99
"icon" : "runner-icon.png",
1010
"updateURL": "https://raw.githubusercontent.com/thierryc/Sketch-Find-And-Replace/master/Find%20And%20Replace.sketchplugin/Contents/Sketch/manifest.json",

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.14</title>
10+
<description>
11+
<![CDATA[
12+
<ul>
13+
<li>Count symbol overrides</li>
14+
</ul>
15+
]]>
16+
</description>
17+
<pubDate>Wed Oct 18 21:00:00 EDT 2017</pubDate>
18+
<enclosure url="https://github.com/thierryc/Sketch-Find-And-Replace/archive/1.14.zip" type="application/octet-stream" sparkle:version="1.14"/>
19+
</item>
820
<item>
921
<title>1.13</title>
1022
<description>

0 commit comments

Comments
 (0)