From c17d7494f34b47a08760cb83ac043b1a80071864 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9E=97=E4=B8=87=E7=A8=8B?= <1498425439@qq.com>
Date: Sat, 6 Aug 2022 05:00:21 +0800
Subject: [PATCH] =?UTF-8?q?1.21=20default=20skip=20only=20English=20when?=
=?UTF-8?q?=20system=20lang=20is=20not=20`en`=20|=20=E7=B3=BB=E7=BB=9F?=
=?UTF-8?q?=E8=AF=AD=E8=A8=80=E9=9D=9E=E8=8B=B1=E6=96=87=E6=97=B6=20?=
=?UTF-8?q?=E9=BB=98=E8=AE=A4=20=E5=BF=BD=E7=95=A5=E7=BA=AF=E8=8B=B1?=
=?UTF-8?q?=E6=96=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 6 +++++-
build.gradle | 4 +++-
.../linwancen/plugin/show/settings/AppSettingsState.java | 3 ++-
src/main/resources/META-INF/plugin.xml | 2 ++
4 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 2daa733..04659e1 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,7 @@ Thanks JetBrains Licenses for Open Source.
External Comment:
+Demo(GitHub)
- Reload: Tools -> 🔄 // Reload External Comment
- path/[any][filename.]ext.tree.tsv // file and folder tree comment 📝 📁
@@ -39,6 +40,7 @@ Thanks JetBrains Licenses for Open Source.
外部注释:
+示例(Gitee)
- 重新加载:工具 -> "🔄 // Reload External Comment"
- path/[any][filename.]ext.tree.tsv // 文件(夹)注释 📝 📁
@@ -56,6 +58,7 @@ Thanks JetBrains Licenses for Open Source.
English Change Notes:
+- 1.21 Add line-end-comment default skip only English when system lang is not `en`
- 1.20 Add get doc first sentence checkbox
- 1.19 Add supper doc at @Override, support doc tag like @author
- 1.18 Add External Comment effect at previous layer when folder named -1
@@ -80,6 +83,7 @@ Thanks JetBrains Licenses for Open Source.
中文更新说明:
+- 1.21 增加 行末注释 系统语言非英文时 默认 忽略纯英文
- 1.20 增加 获取第一句注释选项
- 1.19 增加 @Override 显示父方法注释,支持 @author 等注释标签
- 1.18 增加 外部注释 文件夹名为 -1 时配置在上一层文件夹生效
@@ -111,4 +115,4 @@ See in IDEA with this plugin | 安装插件后用 IDEA 查看
- [Java Doc Comment Demo | Java 文档注释](src/test/java/io/github/linwancen/plugin/show/demo/java/Call.java)
- [JSON Doc Comment Demo | JSON 文档注释](src/test/java/io/github/linwancen/plugin/show/demo/json/base Pojo.json)
- [External Comment Demo For COBOL | 外部注释 Demo](src/test/java/io/github/linwancen/plugin/show/demo/ext/cobol/demo/BASE.cbl)
- [COBOL Highlighting | COBOL 高亮配置](src/test/java/io/github/linwancen/plugin/show/demo/ext/cobol/COBOL_IDEA.md)
\ No newline at end of file
+ [COBOL Highlighting | COBOL 高亮配置](src/test/java/io/github/linwancen/plugin/show/demo/ext/cobol/cobol/COBOL_IDEA.md)
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 432eb74..9be2b42 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ plugins {
}
group 'io.github.linwancen'
-version '1.20.1.' + (new Date().format('yyyy.MM.dd_HH.mm'))
+version '1.21.0.' + (new Date().format('yyyy.MM.dd_HH.mm'))
apply plugin: 'java'
@@ -39,6 +39,7 @@ patchPluginXml {
changeNotes = """
English Change Notes:
+- 1.21 Add line-end-comment default skip only English when system lang is not `en`
- 1.20 Add get doc first sentence checkbox
- 1.19 Add supper doc at @Override, support doc tag like @author
- 1.18 Add External Comment effect at previous layer when folder named -1
@@ -63,6 +64,7 @@ patchPluginXml {
中文更新说明:
+- 1.21 增加 行末注释 系统语言非英文时 默认 忽略纯英文
- 1.20 增加 获取第一句注释选项
- 1.19 增加 @Override 显示父方法注释,支持 @author 等注释标签
- 1.18 增加 外部注释 文件夹名为 -1 时配置在上一层文件夹生效
diff --git a/src/main/java/io/github/linwancen/plugin/show/settings/AppSettingsState.java b/src/main/java/io/github/linwancen/plugin/show/settings/AppSettingsState.java
index fc2c747..9a8bd6d 100644
--- a/src/main/java/io/github/linwancen/plugin/show/settings/AppSettingsState.java
+++ b/src/main/java/io/github/linwancen/plugin/show/settings/AppSettingsState.java
@@ -13,6 +13,7 @@ import org.jetbrains.annotations.Nullable;
import java.awt.*;
import java.math.BigInteger;
+import java.util.Locale;
@State(
name = "io.github.linwancen.plugin.show.settings.AppSettingsState",
@@ -40,7 +41,7 @@ public class AppSettingsState extends AbstractSettingsState implements Persisten
public boolean fromRef = true;
public boolean inJson = true;
public boolean skipAnnotation = true;
- public boolean skipAscii = false;
+ public boolean skipAscii = !"en".equals(Locale.getDefault().getLanguage());
public boolean skipBlank = true;
public static AppSettingsState getInstance() {
diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml
index 95731b0..184098e 100644
--- a/src/main/resources/META-INF/plugin.xml
+++ b/src/main/resources/META-INF/plugin.xml
@@ -14,6 +14,7 @@
External Comment:
+Demo(GitHub)
- Reload: Tools -> 🔄 // Reload External Comment
- path/[any][filename.]ext.tree.tsv // file and folder tree comment 📝 📁
@@ -36,6 +37,7 @@
外部注释:
+示例(Gitee)
- 重新加载:工具 -> "🔄 // Reload External Comment"
- path/[any][filename.]ext.tree.tsv // 文件(夹)注释 📝 📁