Skip to content

Conversation

abc202306
Copy link
Contributor

@abc202306 abc202306 commented Oct 2, 2025

Add Plugin SiYuan Adaptive Expander: https://github.com/abc202306/siyuan-adaptive-expander

Description

思源插件:自适应展开列表块或章节块等可折叠块,当对可折叠块进行聚焦和链接预览时 | This plugin for the Siyuan Note software has the following feature: it adaptively expands collapsible blocks such as list blocks or section blocks when those blocks are focused on or previewed via links.

icon

Copy link

github-actions bot commented Oct 2, 2025

Pull Request Check Report

Add 0 Icon Repo

Add 1 Plugin Repo

abc202306/siyuan-adaptive-expander


Add 0 Template Repo

Add 0 Theme Repo

Add 0 Widget Repo

@TCOTC
Copy link
Collaborator

TCOTC commented Oct 2, 2025

  • LICENSE 文件中的版权声明更新为自己

  • 用不上的 index.scss 文件应清空内容(保留文件本身)

  • 删除 zh_CN.json 和 en_US.json 文件中大部分没有使用到的文案

  • 修改 plugin.json:

     {
       "name": "siyuan-adaptive-expander",
       "author": "abc202306",
       "url": "https://github.com/abc202306/siyuan-adaptive-expander",
       "version": "1.0.0",
       "minAppVersion": "3.3.0",
       "backends": [ // 使用 ["all"]
         "windows",
         "linux",
         "darwin",
         "ios",
         "android",
         "harmony",
         "docker"
       ],
       "frontends": [ // 使用 ["all"]
         "desktop",
         "mobile",
         "browser-desktop",
         "browser-mobile",
         "desktop-window"
       ],
       "disabledInPublish": false, // 实际测试发现无法在发布服务中正常使用,应改为 true。等 https://github.com/siyuan-note/siyuan/issues/11928 改进之后再改回 false
       "displayName": {
         "default": "Adaptive Expander",
         "zh_CN": "自适应展开器"
       },
       "description": {
         "default": "Automatically expands collapsible blocks such as list blocks or section blocks when those blocks are focused on or previewed via links.;\n\nThe adaptive expansion behavior of this plugin is similar to that found in note-taking software like Logseq and Workflowy. However, its functionality is not limited to list blocks—it also applies to section blocks, table blocks, code blocks, and other types of collapsible blocks.", // 需精简描述,20 词以内
         "zh_CN": "思源插件:自适应展开列表块或章节块等可折叠块,当对可折叠块进行聚焦和链接预览时;\n\n该插件的自适应展开的效果与笔记软件 Logseq 和 Workflowy 类似,但其作用的效果不仅适用于列表块,而且也适用于章节块、表格块和代码块等类型的块" // 需精简描述,30 字以内
       },
       "readme": {
         "default": "README.md",
         "zh_CN": "README_zh_CN.md"
       },
       "keywords": [
         "adaptive", // 冗余的关键词,需删除
         "expander" // 冗余的关键词,需删除
       ]
     }

@abc202306
Copy link
Contributor Author

@TCOTC
Copy link
Collaborator

TCOTC commented Oct 2, 2025

既然不需要 zh_CN.json 和 en_US.json 文件,那就把 index.ts 里的这两行代码也删了:

image

@abc202306
Copy link
Contributor Author

@TCOTC TCOTC merged commit 80f9805 into siyuan-note:main Oct 2, 2025
1 check passed
@TCOTC
Copy link
Collaborator

TCOTC commented Oct 2, 2025

感谢你的贡献,思源有你更精彩!
Thank you for your contribution. SiYuan will be more wonderful with you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants