Skip to content

Commit 2ea138a

Browse files
committed
Version 1.5.3
1 parent e134340 commit 2ea138a

5 files changed

Lines changed: 9 additions & 6 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "cat.wavy"
8-
version = "1.5.2"
8+
version = "1.5.3"
99

1010
repositories {
1111
mavenCentral()

src/main/kotlin/cat/wavy/catactivity/service/TimeService.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ class TimeService : Disposable {
114114
?.let { problemsCollector.getFileProblemCount(it) } ?: 0).toString(),
115115
"%branch%" to (repo?.currentBranch?.name ?: DefaultVars.BRANCH.default),
116116
"%repository%" to (repo?.project?.name ?: DefaultVars.REPO.default),
117-
"%totalLines%" to (editingFile?.linesCount?.toString() ?: DefaultVars.LINESCOUNT.default),
118-
"%fileSize%" to (editingFile?.fileSize?.formatBytes() ?: DefaultVars.FILESIZE.default)
117+
"%linesCount%" to (editingFile?.linesCount?.toString() ?: DefaultVars.LINESCOUNT.default),
118+
"%fileSize%" to (editingFile?.fileSize?.formatBytes() ?: DefaultVars.FILESIZE.default),
119+
"%fileExtension%" to (editingFile?.extension ?: DefaultVars.FILEEXTENSION.default)
119120
)
120121

121122
activityWrapper = ActivityWrapper(

src/main/kotlin/cat/wavy/catactivity/setting/CatConfigurable.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ class CatConfigurable(
147147
<li>%projectProblems%: Number of problems in project</li>
148148
<li>%branch%: Current branch name</li>
149149
<li>%repository%: Current repository</li>
150-
<li>%totalLines%: Number of total lines in the file</li>
150+
<li>%linesCount%: Number of total lines in the file</li>
151151
<li>%fileSize%: Current file size</li>
152+
<li>%fileExtension%: Current file extension</li>
152153
</ul>
153154
""".trimIndent(), "Placeholders"
154155
)

src/main/kotlin/cat/wavy/catactivity/types/DefaultVars.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ enum class DefaultVars(
1111
FILENAME("Empty"),
1212
FILEPATH("¯\\_(ツ)_/¯"),
1313
LINESCOUNT("¯\\_(ツ)_/¯"),
14-
FILESIZE("¯\\_(ツ)_/¯")
14+
FILESIZE("¯\\_(ツ)_/¯"),
15+
FILEEXTENSION("¯\\_(ツ)_/¯")
1516
}

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
]]></description>
2323

2424
<change-notes>
25-
Added new JetBrains IDE icons
25+
A new placeholder %fileExtension% has been added, and %totalLines% has been renamed to %linesCount%
2626
</change-notes>
2727

2828
<!-- Product and plugin compatibility requirements.

0 commit comments

Comments
 (0)