Files
show-comment/src/main/resources/META-INF/plugin.xml

218 lines
11 KiB
XML
Raw Normal View History

<idea-plugin url="https://plugins.jetbrains.com/plugin/18553-show-comment">
2022-10-23 20:24:25 +08:00
<id>io.github.linwancen.show-comment</id>
<name>Show Comment</name>
<vendor email="1498425439@qq.com" url="https://github.com/LinWanCen/show-comment">林万程</vendor>
2022-02-11 00:23:01 +08:00
2022-10-23 20:24:25 +08:00
<description><![CDATA[
Show doc comment in the Project view Tree, line End, json, other
在文件树、行末、JSON 等地方显示注释.
2022-03-07 23:58:57 +08:00
<ul>
2024-02-28 23:07:40 +08:00
<li>Java, Kotlin, Groovy, Scala
<li>C/C++/OC, Python, Go, Rust, Ruby
<li>JS/TS, PHP, SQL
<li>YAML/yml
2024-02-28 23:07:40 +08:00
</ul>
<h4>English Note</h4>
<ul>
<li>tree doc from lang or README.md pom .gradle etc. by settings
2022-10-30 21:00:10 +08:00
<li>input `doc` `docc` -> /** */
<li>json doc from xxx.json.tsv
<li>json dict doc from (key).tsv
<li>"xx-ClassNameOrSimpleName.json" and jump to field
<li>from External Conf for folder, resources, COBOL etc.
<li>Config: settings -> Tools -> // Show Comment App/Global/Project
2022-03-07 23:58:57 +08:00
</ul>
2024-02-28 23:07:40 +08:00
<h5>External Comment</h5>
<a href="https://github.com/LinWanCen/show-comment/tree/main/src/test/java/io/github/linwancen/plugin/show/demo/ext">Demo(GitHub)</a>
<ul>
<li>Reload: Tools -> 🔄 // Reload External Comment
<li>path/[any][filename.]ext.tree.tsv // file and folder tree comment 📝 📁
<li>path/[any][filename.]ext.key.tsv // line keywords to split and comment
<li>path/[any][filename.]ext.doc.tsv // line words comment
<li>In path, "doc" can replace any, and can use % like in SQL, effect at previous layer when folder named -1
2022-04-07 08:01:20 +08:00
<li>The lines in key.tsv will be concatenated with `|` to regexp; longer str should in front; startWith `?` to exclude
<li>Chang tsv file in find pop window would not reload!
<li>The tsv conf file must could be search in "Go to File" (Ctrl + Shift + N)
</ul>
2024-02-28 23:07:40 +08:00
<h5>My Project</h5>
<ul>
2023-08-31 08:03:37 +08:00
<li>Show doc comment at the Project view Tree, line End, json etc.:
<a href="https://plugins.jetbrains.com/plugin/18553-show-comment">Show Comment</a>
</li>
<li>show line count for file / method, show children count for dir in project view (tree on left):
<a href="https://plugins.jetbrains.com/plugin/23300-line-num">Line Num</a>
</li>
<li>Method call usage graph and maven dependency graph:
<a href="https://plugins.jetbrains.com/plugin/21242-draw-graph">Draw Graph</a>
</li>
<li>Find author/comment of multiple files or lines and export Find:
<a href="https://plugins.jetbrains.com/plugin/20557-find-author">Find Author</a>
<li>Auto sync coverage and capture coverage during debug:
<a href="https://plugins.jetbrains.com/plugin/20780-sync-coverage">Sync Coverage</a>
</ul>
<hr>
2024-02-28 23:07:40 +08:00
<h4>中文说明</h4>
2022-03-07 23:58:57 +08:00
<ul>
<li>在结构树显示 文件注释 或 项目说明 (README.md pom.xml 等,可设置)
<li>在行末尾显示 引用对象的文档注释,欢迎反馈您想要支持的语言,欢迎 C# 大神研究 CsLineEnd.java
2022-10-30 21:00:10 +08:00
<li>输入 doc / docc 等生成 /** */
<li>json 字段注释从 xxx.json.tsv 读取
<li>json 字典注释从 键名.tsv 读取
<li>支持 "xx-类全名或简名.json" 读取字段注释和跳转
<li>支持 从配置文件获取外部注释用于文件夹、资源、COBOL 等
<li>修改配置:设置 -> 工具 -> // Show Comment App/Global/Project
</ul>
2024-02-28 23:07:40 +08:00
<h5>外部注释</h5>
<a href="https://gitee.com/LinWanCen/show-comment/tree/main/src/test/java/io/github/linwancen/plugin/show/demo/ext">示例(Gitee)</a>
:比如你要给 .go 的文件配置文件注释可以放在相同目录或父目录的 xxx.go.tree.tsv 中
<ul>
<li>重新加载:工具 -> "🔄 // Reload External Comment"
<li>path/[any][filename.]ext.tree.tsv // 文件(夹)注释 📝 📁
<li>path/[any][filename.]ext.key.tsv // 切割关键字与注释
<li>path/[any][filename.]ext.doc.tsv // 词注释
<li>key.tsv 的每一行将会用`|`连接起来形成正则表达式,较长的关键字应该放在前面,用 `?` 开头排除
<li>doc 文件夹可以替换任何一层文件夹,可以像 SQL 那样用 % 模糊匹配,文件夹名为 -1 时在上一层文件夹生效
<li>在搜索弹出窗中修改 tsv 文件将不会被重加载
<li>tsv 配置文件必须能被搜索(Ctrl + Shift + N)
2022-03-07 23:58:57 +08:00
</ul>
2024-02-28 23:07:40 +08:00
<h5>我的项目</h5>
<ul>
<li>在文件树、行末、JSON 显示注释:
<a href="https://plugins.jetbrains.com/plugin/18553-show-comment">Show Comment</a>
</li>
<li>在文件树显示行数、文件数:
<a href="https://plugins.jetbrains.com/plugin/23300-line-num">Line Num</a>
</li>
<li>生成 方法调用图 和 Maven 依赖图:
<a href="https://plugins.jetbrains.com/plugin/21242-draw-graph">Draw Graph</a>
</li>
<li>查找多个文件或行的作者 与 导出搜索:
<a href="https://plugins.jetbrains.com/plugin/20557-find-author">Find Author</a>
<li>自动同步覆盖率 和 调试中抓取覆盖率:
<a href="https://plugins.jetbrains.com/plugin/20780-sync-coverage">Sync Coverage</a>
</ul>
<hr>
2024-02-28 23:07:40 +08:00
<h4>找个女朋友</h4>
<ul>
<li>我的情况1993-11-03软件工程师广发银行编制LOLmNS看书写文章KTV爬山逛街
<li>我的性格ISFP(探险家 内向 实际 感性 随性)
<li>希望对方:广东省,与家人关系好,爱笑甜美大眼睛
<li>有兴趣请联系 1498425439@qq.com也欢迎反馈问题和需求
</ul>
<hr>
2024-02-28 23:07:40 +08:00
<h4>支持</h4>
<ul>
<li>如果对你有所帮助,可以通过群或文章等形式分享给大家,在插件市场好评,或者给本项目
<a href="https://github.com/LinWanCen/show-comment">GitHub</a>
主页一个 Star您的支持是项目前进的动力。
</ul>
<hr>
2022-02-11 00:23:01 +08:00
]]></description>
2022-10-23 20:24:25 +08:00
<!-- please see https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html
on how to target different products -->
<depends>com.intellij.modules.platform</depends>
2022-10-23 20:24:25 +08:00
<depends optional="true" config-file="java.xml">com.intellij.modules.java</depends>
2023-12-12 18:41:28 +08:00
<depends optional="true" config-file="kotlin.xml">org.jetbrains.kotlin</depends>
<depends optional="true" config-file="groovy.xml">org.intellij.groovy</depends>
<depends optional="true" config-file="scala.xml">org.intellij.scala</depends>
2022-10-23 20:24:25 +08:00
<depends optional="true" config-file="sql.xml">com.intellij.database</depends>
<depends optional="true" config-file="js.xml">JavaScript</depends>
<depends optional="true" config-file="php.xml">com.jetbrains.php</depends>
2022-10-23 20:24:25 +08:00
<depends optional="true" config-file="python.xml">com.intellij.modules.python</depends>
<depends optional="true" config-file="go.xml">org.jetbrains.plugins.go</depends>
<depends optional="true" config-file="rust_old.xml">org.rust.lang</depends>
<depends optional="true" config-file="rust.xml">com.jetbrains.rust</depends>
<depends optional="true" config-file="ruby.xml">com.intellij.modules.ruby</depends>
<depends optional="true" config-file="c.xml">com.intellij.modules.clion</depends>
2024-02-28 23:06:56 +08:00
<depends optional="true" config-file="swift.xml">com.intellij.modules.swift.lang</depends>
<depends optional="true" config-file="json.xml">com.intellij.modules.json</depends>
<depends optional="true" config-file="yaml.xml">org.jetbrains.plugins.yaml</depends>
2022-10-23 20:24:25 +08:00
<!--<depends optional="true" config-file="cs.xml">com.intellij.modules.rider</depends>-->
2022-02-11 00:23:01 +08:00
2022-10-23 20:24:25 +08:00
<applicationListeners>
2023-12-24 09:34:14 +08:00
<listener class="io.github.linwancen.plugin.show.ext.conf.listener.ConfFileListener"
2022-10-23 20:24:25 +08:00
topic="com.intellij.openapi.vfs.newvfs.BulkFileListener"/>
2023-12-24 09:34:14 +08:00
<listener class="io.github.linwancen.plugin.show.ext.conf.listener.ConfFileChangeListener"
2022-10-23 20:24:25 +08:00
topic="com.intellij.openapi.fileEditor.FileEditorManagerListener"/>
<listener class="io.github.linwancen.plugin.show.cache.CacheUpdateEditorListener"
topic="com.intellij.openapi.fileEditor.FileEditorManagerListener"/>
2022-10-23 20:24:25 +08:00
</applicationListeners>
2022-10-23 20:24:25 +08:00
<projectListeners>
2023-12-24 09:34:14 +08:00
<listener class="io.github.linwancen.plugin.show.ext.conf.listener.ConfFileInitListener"
2022-10-23 20:24:25 +08:00
topic="com.intellij.openapi.project.ProjectManagerListener"/>
<listener class="io.github.linwancen.plugin.show.cache.CacheUpdateProjectListener"
topic="com.intellij.openapi.project.ProjectManagerListener"/>
2022-10-23 20:24:25 +08:00
</projectListeners>
2022-10-23 20:24:25 +08:00
<extensions defaultExtensionNs="com.intellij">
<editor.linePainter implementation="io.github.linwancen.plugin.show.LineEnd"/>
<projectViewNodeDecorator implementation="io.github.linwancen.plugin.show.Tree"/>
2024-07-28 23:20:30 +08:00
<defaultLiveTemplates file="/liveTemplates/show-comment-_.xml"/>
2022-10-23 20:24:25 +08:00
<defaultLiveTemplates file="/liveTemplates/show-comment-doc.xml"/>
<defaultLiveTemplates file="/liveTemplates/show-comment-xml.xml"/>
2022-02-11 00:23:01 +08:00
2022-10-23 20:24:25 +08:00
<applicationConfigurable parentId="tools"
instance="io.github.linwancen.plugin.show.settings.AppSettingsConfigurable"
id="io.github.linwancen.plugin.show.settings.AppSettingsConfigurable"
2023-10-11 22:07:11 +08:00
displayName="// Show Comment App"/>
2022-10-23 20:24:25 +08:00
<applicationService serviceImplementation="io.github.linwancen.plugin.show.settings.AppSettingsState"/>
2023-10-11 22:07:11 +08:00
<applicationConfigurable parentId="io.github.linwancen.plugin.show.settings.AppSettingsConfigurable"
instance="io.github.linwancen.plugin.show.settings.GlobalSettingsConfigurable"
id="io.github.linwancen.plugin.show.settings.GlobalSettingsComponent"
displayName="// Show Comment Global"/>
<applicationService serviceImplementation="io.github.linwancen.plugin.show.settings.GlobalSettingsState"/>
<projectConfigurable parentId="io.github.linwancen.plugin.show.settings.AppSettingsConfigurable"
2022-10-23 20:24:25 +08:00
instance="io.github.linwancen.plugin.show.settings.ProjectSettingsConfigurable"
id="io.github.linwancen.plugin.show.settings.ProjectSettingsConfigurable"
displayName="// Show Comment Project"/>
<projectService serviceImplementation="io.github.linwancen.plugin.show.settings.ProjectSettingsState"/>
</extensions>
2022-02-11 00:23:01 +08:00
2022-10-23 20:24:25 +08:00
<actions>
<action
id="io.github.linwancen.plugin.show.ext.conf.ReLoadExtDocAction"
2023-12-24 09:34:14 +08:00
class="io.github.linwancen.plugin.show.ext.conf.action.ReloadExtDocAction"
2022-10-23 20:24:25 +08:00
text="🔄 // Reload External Comment">
<add-to-group group-id="ToolsMenu"/>
</action>
<action
2023-12-24 09:34:14 +08:00
id="io.github.linwancen.plugin.show.ext.conf.action.ResetExtDocAction"
class="io.github.linwancen.plugin.show.ext.conf.action.ResetExtDocAction"
2022-10-23 20:24:25 +08:00
text="🆑 // Clear External Comment">
<add-to-group group-id="ToolsMenu"/>
</action>
<action
id="io.github.linwancen.plugin.show.LineEndAdd"
class="io.github.linwancen.plugin.show.LineEndAdd"
text="// Add Line Comment">
<add-to-group group-id="ProjectViewPopupMenu" anchor="last"/>
</action>
2022-10-23 20:24:25 +08:00
<action
id="io.github.linwancen.plugin.show.LineEndCopy"
class="io.github.linwancen.plugin.show.LineEndCopy"
text="// Copy With Line Comment">
<add-to-group group-id="EditorPopupMenu" anchor="after"
relative-to-action="CopyReference"/>
</action>
<action
id="io.github.linwancen.plugin.show.CopyReferenceSimple"
class="io.github.linwancen.plugin.show.CopyReferenceSimple"
text="Copy Class.Method / File:LineNum">
2022-10-23 20:24:25 +08:00
<add-to-group group-id="EditorPopupMenu" anchor="after"
relative-to-action="CopyReference"/>
</action>
</actions>
2022-02-11 00:23:01 +08:00
</idea-plugin>