Skip to content

Commit

Permalink
update: read line title + ##
Browse files Browse the repository at this point in the history
  • Loading branch information
muedsa committed Nov 30, 2021
1 parent 425ef11 commit 4c3a5ea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'com.muedsa.intellij.text-reader-sidebar-tool'
version '2021.11.29'
version '2021.11.30'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public void mouseClicked(MouseEvent e) {
});

//每行字数
SpinnerModel lineSizeSpinnerModel = new SpinnerNumberModel(15, 0, 100, 1);
SpinnerModel lineSizeSpinnerModel = new SpinnerNumberModel(30, 0, 100, 1);
lineSizeSpinner.setModel(lineSizeSpinnerModel);
}

Expand Down Expand Up @@ -360,7 +360,7 @@ private void setTextContent(){
sendNotify("文件读取错误", e.getLocalizedMessage(), NotificationType.ERROR);
}
textContent.setText(text);
noBlankChapterText = text.replaceAll("\\s*", "");
noBlankChapterText = text.replaceFirst("\n", "##").replaceAll("\\s*", "");
textContent.setCaretPosition(0);
positionInChapter = 0;
}
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin>
<id>com.muedsa.intellij.textReader</id>
<name>TextReaderSidebarTool</name>
<version>2021.11.29</version>
<version>2021.11.30</version>
<vendor email="[email protected]" url="http://www.muedsa.com">MUEDSA</vendor>

<description><![CDATA[
Expand All @@ -11,6 +11,12 @@
]]></description>

<change-notes><![CDATA[
<h3>2021.11.30</h3>
<ul>
<li>read line: title + ##</li>
<li>default read line size :30</li>
</ul>
<hr/>
<h3>2021.11.29</h3>
<ul>
<li>PreviousLineAction</li>
Expand Down

0 comments on commit 4c3a5ea

Please sign in to comment.