siyuan/kernel/model
Achuan-2 7545c2517f
Improve the outline panel (#15814)
*  实现大纲持久化
- 添加折叠状态变化的实时保存功能
- 在文档更新时恢复折叠状态
- 保存拖拽前的折叠状态并在拖拽后恢复
- 更新本地存储结构以支持折叠状态

* 🎨 clean code

*  在`data/storage`文件夹下创建`outline/${docID}.json`文件,存储标题outline展开信息

*  alt click折叠/展开统计标题

* 添加层级控制功能
- 新增层级控制滑条,允许用户展开指定层级

* 🌐 添加多语言支持的展开层级功能

*  f添加层级重置显示功能
- 新增 resetLevelDisplay 方法以重置层级显示状态
- 更新层级控制的初始化逻辑,默认不显示层级
- 在文档切换时重置层级显示状态

* 优化层级控制功能
- 添加用户主动层级控制标记
- 修改层级显示重置逻辑,仅在非用户操作时重置
- 更新层级控制滑条的点击事件处理

* ♻️ 重构大纲存储逻辑
- 合并大纲存储为单一文件 outline.json

* ♻️ outline.json 单行存储

* ♻️ outline.json参考recent-doc.json,只存储前1000个文档信息,每次新增信息会把数据放在最前面

* ♻️单行存储json

* ♻️ 增加outline.json存储限制至2000个

*  新增`保持当前标题展开`按钮,`保持全部展开`改为`全部展开`按钮

*  保持当前标题展开优化
- 超过两级折叠,也能都展开
- 如果父节点折叠,展开时自动折叠兄弟节点,只展开当前节点路径,如果父节点是展开状态,则不影响兄弟节点折叠状态

* 🔥 移除层级文本

*  右键点击toggle时展开所有子标题

*  右键click点击折叠图标,会折叠/展开所有子标题

*  大纲支持筛选功能

*  feat(大纲): 优化筛选功能以显示所有子标题
- 添加 showAllDescendants 函数以显示所有子标题
- 修改 processUL 函数以在父标题命中时显示所有子标题
- 确保未命中的子标题隐藏

*  优化大纲筛选

- 如果标题命中筛选,这个标题的所有父标题展开,以显示出这个标题位置
- 如果父标题命中筛选,子项都没有命中筛选,则折叠全部子项(依然可以展开显示)
- 如果父标题命中筛选,子项也有命中筛选,则展开命中的子项,其他无关子项隐藏

* 💄 展开层级改为按钮,原先的圆点样式碍眼

* 💄 展开层级改为按钮,原先的圆点样式碍眼

* 💄 style(菜单): 优化展开层级菜单的样式和位置
- 添加图标以增强可视化
- 调整菜单弹出位置以改善用户体验

* ♻️ refactor(大纲): 优化标题级别获取逻辑
- 调整展开到指定层级的逻辑,使用标题级别进行判断

* 🎨

*  feat(大纲): 添加右键菜单功能
- 实现右键点击标题时显示上下文菜单
- 增加标题升级、降级、插入、删除等操作
- 基于标题级别展开/折叠同级标题

*  feat(大纲): 添加子标题功能
- 在右键菜单中添加“添加子标题”选项
- 实现子标题的添加逻辑,支持最大级别为H6
- 使用当前标题作为父标题,插入新子标题

*  feat(大纲): "添加子标题"确保父标题展开状态

*  feat(大纲): 使用expandIds方式保存父标题展开状态
- 确保父标题保持展开状态
- 保存展开状态到持久化存储
- 移除冗余的状态保存逻辑

*  feat(大纲): 调整右键菜单顺序,将“全部折叠”功能移至“全部展开”之后

* 🌐 i18n optimization
2025-10-15 10:01:47 +08:00
..
ai.go 🐛 AI DeepSeek 422 Unprocessable Entity https://github.com/siyuan-note/siyuan/issues/14347 2025-03-22 11:16:40 +08:00
appearance.go 🧑‍💻 Add internal kernel API /api/ui/reloadIcon https://github.com/siyuan-note/siyuan/issues/16008 2025-10-03 15:50:43 +08:00
asset_content.go Improve the image loading performance in the database https://github.com/siyuan-note/siyuan/issues/15245 2025-07-09 16:19:19 +08:00
asset_content_test.go 🎨 Support searching PDF asset content https://github.com/siyuan-note/siyuan/pull/8985 2023-08-17 11:58:54 +08:00
assets.go 🐛 PDF files with too long file names cannot generate annotated images https://github.com/siyuan-note/siyuan/issues/15739 https://github.com/siyuan-note/siyuan/issues/10666 2025-09-03 17:37:27 +08:00
assets_watcher.go Improve the image loading performance in the database https://github.com/siyuan-note/siyuan/issues/15245 2025-07-09 16:19:19 +08:00
assets_watcher_darwin.go Improve the image loading performance in the database https://github.com/siyuan-note/siyuan/issues/15245 2025-07-09 16:19:19 +08:00
attribute_view.go 🐛 https://github.com/siyuan-note/siyuan/issues/16049 2025-10-10 21:00:59 +08:00
attribute_view_fix.go 🎨 Limit the database title to 512 characters https://github.com/siyuan-note/siyuan/issues/15459 2025-08-24 15:16:10 +08:00
attribute_view_render.go Database kanban view https://github.com/siyuan-note/siyuan/issues/8873 2025-09-14 22:42:28 +08:00
auth.go 🎨 Add cookie-based auth in publish proxy (#15692) 2025-08-28 16:20:12 +08:00
backlink.go 🎨 Improve backmention search https://github.com/siyuan-note/siyuan/issues/4699 2025-07-23 11:33:20 +08:00
bazzar.go 🎨 Marketplace search for multiple keywords uses AND logic https://github.com/siyuan-note/siyuan/issues/14293 2025-03-07 22:45:27 +08:00
block.go 🎨 https://github.com/siyuan-note/siyuan/issues/16048 2025-10-10 13:09:36 +08:00
blockial.go 🎨 Database index content/markdown values no longer contain zero-width spaces https://github.com/siyuan-note/siyuan/issues/15204 2025-07-03 10:01:04 +08:00
blockinfo.go 🎨 The embed block of a heading supports hiding the heading itself 2025-09-25 16:54:01 +08:00
bookmark.go ♻️ Improve transaction flush 2024-10-22 19:21:04 +08:00
box.go 🎨 https://github.com/siyuan-note/siyuan/issues/16046 2025-10-10 12:54:38 +08:00
caldav.go 🐛 File names ending with . will be considered as missing assets 2024-12-04 22:37:44 +08:00
carddav.go 🐛 PDF files with too long file names cannot generate annotated images https://github.com/siyuan-note/siyuan/issues/15739 https://github.com/siyuan-note/siyuan/issues/10666 2025-09-03 17:37:27 +08:00
cloud_service.go 🎨 Improve the marketplace refresh timer https://github.com/siyuan-note/siyuan/issues/14685 2025-04-23 10:34:47 +08:00
conf.go 🎨 https://github.com/siyuan-note/siyuan/issues/16046 2025-10-10 12:48:40 +08:00
dav.go 🧑‍💻 Kernel serve CalDAV service on path /caldav/ (#13321) 2024-12-01 23:20:47 +08:00
elevator.go 🎨 Improve the marketplace refresh timer https://github.com/siyuan-note/siyuan/issues/14685 2025-04-23 19:37:38 +08:00
elevator_windows.go 🎨 Improve the marketplace refresh timer https://github.com/siyuan-note/siyuan/issues/14685 2025-04-23 10:34:47 +08:00
emojis_watcher.go 🎨 Support HarmonyOS NEXT system https://github.com/siyuan-note/siyuan/issues/13184 2024-11-22 20:23:36 +08:00
emojis_watcher_darwin.go ♻️ Refactor Go to err != nil, err == nil (#12385) 2024-09-04 09:40:50 +08:00
export.go 🎨 Improve exporting markdown block ref relative path https://github.com/siyuan-note/siyuan/issues/16042 2025-10-11 18:10:12 +08:00
export_merge.go 🎨 Ignore the last empty paragraph block when exporting merged sub-documents https://github.com/siyuan-note/siyuan/issues/15028 2025-06-19 10:46:31 +08:00
file.go 🎨 https://github.com/siyuan-note/siyuan/issues/16089 2025-10-14 17:07:56 +08:00
flashcard.go 🎨 Improve flashcard management sorting https://github.com/siyuan-note/siyuan/issues/14686 2025-04-23 17:17:14 +08:00
format.go 🐛 Optimize typography exception when code block contains ``` https://github.com/siyuan-note/siyuan/issues/15843 2025-09-13 11:59:08 +08:00
graph.go 🔥 Graph nodes no longer display memos https://github.com/siyuan-note/siyuan/issues/13287 2024-11-27 08:39:24 +08:00
heading.go 🎨 Improve fold heading editing https://github.com/siyuan-note/siyuan/issues/15848 2025-09-23 23:22:46 +08:00
history.go 🎨 Clean code 2025-08-29 16:00:39 +08:00
import.go 🐛 PDF files with too long file names cannot generate annotated images https://github.com/siyuan-note/siyuan/issues/15739 https://github.com/siyuan-note/siyuan/issues/10666 2025-09-03 17:37:27 +08:00
index.go 🎨 https://github.com/siyuan-note/siyuan/issues/16089 2025-10-14 17:07:56 +08:00
index_fix.go 🎨 Improve rollback doc to avoid ID duplication https://github.com/siyuan-note/siyuan/issues/14358 2025-03-15 12:43:38 +08:00
listitem.go 🎨 Improve reference count update after document convert to heading https://github.com/siyuan-note/siyuan/issues/15299 2025-07-17 16:33:22 +08:00
mount.go 🎨 Improve open the user guide https://github.com/siyuan-note/siyuan/issues/15792 2025-09-07 09:35:48 +08:00
ocr.go Kernel API OCR returns text coordinate information (#11738) 2024-06-16 22:55:22 +08:00
outline.go 🎨 https://github.com/siyuan-note/siyuan/issues/15909#issuecomment-3325724408 2025-09-24 11:56:54 +08:00
path.go 🎨 Trim space in dialynote/block ref/new doc save path https://github.com/siyuan-note/siyuan/issues/14482 2025-04-01 01:19:39 +08:00
pdf.go ♻️ Upgrade pdfcpu to v0.9.1 https://github.com/siyuan-note/siyuan/issues/13305 2024-11-28 23:04:55 +08:00
plugin.go 🎨 https://github.com/siyuan-note/siyuan/issues/16015 https://github.com/siyuan-note/siyuan/issues/8342 2025-10-05 09:37:05 +08:00
process.go ♻️ Refactor Go to err != nil, err == nil (#12385) 2024-09-04 09:40:50 +08:00
push_reload.go 🐛 Doc tree drag function is abnormal https://github.com/siyuan-note/siyuan/issues/15972 2025-09-28 09:39:04 +08:00
render.go 🎨 Improve text https://github.com/siyuan-note/siyuan/pull/15877 2025-09-25 17:11:47 +08:00
repository.go 🎨 Improve data sync to avoid conflicts caused by folding block https://github.com/siyuan-note/siyuan/issues/15329#issuecomment-3152964043 2025-08-05 11:08:34 +08:00
role.go 🐛 Publish https://github.com/siyuan-note/siyuan/issues/11902 2024-07-07 22:39:53 +08:00
search.go 🎨 Block ref search and global search results display reference counts https://github.com/siyuan-note/siyuan/issues/15721 2025-08-31 13:07:50 +08:00
session.go 🎨 Improve auth 2025-07-25 14:37:21 +08:00
shortcuts.go 🎨 Supports local shorthands on Android https://github.com/siyuan-note/siyuan/issues/14414 2025-03-28 21:32:09 +08:00
snippet.go 🎨 Improve code snippet writing https://github.com/siyuan-note/siyuan/issues/13101 2024-11-12 17:23:53 +08:00
storage.go Improve the outline panel (#15814) 2025-10-15 10:01:47 +08:00
sync.go 🎨 Clean code 2025-04-27 12:07:34 +08:00
tag.go 🎨 API getTag add an optional parameter ignoreMaxListHint https://github.com/siyuan-note/siyuan/issues/16000 2025-10-03 21:59:19 +08:00
template.go Support code block highlighting template syntax and export code block templates as paragraphs (#15345) 2025-07-29 21:36:34 +08:00
theme.go Improve export preview mode CSS variable value filling (#15110) 2025-07-29 21:33:40 +08:00
transaction.go 🎨 Improve fold heading editing https://github.com/siyuan-note/siyuan/issues/15989 2025-10-13 18:12:17 +08:00
tree.go 🎨 Refresh the data in the interface after moving the document https://github.com/siyuan-note/siyuan/issues/15762 2025-09-10 21:39:14 +08:00
updater.go 🎨 Clean code 2025-04-18 10:36:14 +08:00
upload.go 🐛 PDF files with too long file names cannot generate annotated images https://github.com/siyuan-note/siyuan/issues/15739 https://github.com/siyuan-note/siyuan/issues/10666 2025-09-03 17:37:27 +08:00
virutalref.go 🐛 Virtual reference keyword exclusion list does not work in certain cases https://github.com/siyuan-note/siyuan/issues/15252 2025-07-08 20:38:59 +08:00
widget.go ♻️ Refactor Go to err != nil, err == nil (#12385) 2024-09-04 09:40:50 +08:00