Commit graph

952 commits

Author SHA1 Message Date
Vanessa
33192d1404 🎨 https://github.com/siyuan-note/siyuan/issues/16121 3 2025-10-17 01:01:35 +08:00
Vanessa
a8583c3c04 🎨 https://github.com/siyuan-note/siyuan/issues/16121 4 2025-10-17 00:35:38 +08:00
Vanessa
12cab15a8d 🎨 https://github.com/siyuan-note/siyuan/issues/16121 6 2025-10-17 00:06:16 +08:00
Vanessa
251d5e012c 🎨 https://github.com/siyuan-note/siyuan/issues/16121 10 2025-10-16 19:17:42 +08:00
Vanessa
811c99b6ac 🎨 https://github.com/siyuan-note/siyuan/issues/16121 9 2025-10-16 18:29:36 +08:00
Vanessa
67859fb96d 🎨 https://github.com/siyuan-note/siyuan/issues/16121 2 2025-10-16 18:18:22 +08:00
Vanessa
fafa718204 🎨 https://github.com/siyuan-note/siyuan/issues/16121 1 2025-10-16 18:07:51 +08:00
Vanessa
a5f23edee2 🎨 https://github.com/siyuan-note/siyuan/pull/15814 2025-10-16 11:43:03 +08:00
Vanessa
219ec0f292 🎨 https://github.com/siyuan-note/siyuan/pull/15814 2025-10-16 11:09:45 +08:00
Vanessa
214ceb37b1 🎨 https://github.com/siyuan-note/siyuan/pull/15814 2025-10-15 20:32:13 +08:00
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
Vanessa
0f4de03dec 🐛 2025-10-06 11:35:14 +08:00
Daniel
9f3cd7ca95
🎨 API getTag add an optional parameter ignoreMaxListHint https://github.com/siyuan-note/siyuan/issues/16000
Signed-off-by: Daniel <845765@qq.com>
2025-10-03 21:59:19 +08:00
Vanessa
280d3e80a8 🎨 https://github.com/siyuan-note/siyuan/issues/16000 2025-10-03 21:45:08 +08:00
Vanessa
b46d7e2ceb 🎨 https://github.com/siyuan-note/siyuan/issues/16000 2025-10-03 16:35:16 +08:00
Daniel
01ed3fe4c4
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
2025-09-30 20:47:35 +08:00
Vanessa
982d8f69de 🎨 https://github.com/siyuan-note/siyuan/pull/15965 2025-09-30 09:33:03 +08:00
Vanessa
63c86becb1 🎨 https://github.com/siyuan-note/siyuan/pull/15965 2025-09-29 19:21:07 +08:00
Vanessa
09bad9b446 🎨 https://github.com/siyuan-note/siyuan/issues/15975 2025-09-29 17:16:34 +08:00
Achuan-2
89fe4fc560
Doc tree supports Shift+Click to select multiple documents (#15965)
*  feat(文件管理): 支持 Shift+点击多选文档
- 添加 lastClickedFileItem 属性以跟踪最后点击的文档项
- 实现 Shift+点击选择范围功能
- 更新文档项选择状态

* 🎨 文档树「在页签下侧打开」快捷键改为ctrl+shift+click

* 🎨 文档树「在页签下侧打开」快捷键改为ctrl+shift+click
2025-09-29 12:03:16 +08:00
Vanessa
2f9d2afcd3 🎨 https://github.com/siyuan-note/siyuan/issues/15885 2025-09-20 17:02:11 +08:00
Vanessa
c4aee4d601 🎨 https://github.com/siyuan-note/siyuan/issues/15885 2025-09-20 16:46:50 +08:00
Vanessa
a99a55b512 🎨 https://github.com/siyuan-note/siyuan/issues/15840 2025-09-13 09:29:17 +08:00
Vanessa
41f72e65d3 🚨 2025-09-13 09:15:54 +08:00
Vanessa
e37ab0db78 🎨 https://github.com/siyuan-note/siyuan/issues/15825 2025-09-12 12:16:44 +08:00
Vanessa
fd83286438 🎨 https://github.com/siyuan-note/siyuan/issues/15821 2025-09-11 22:44:32 +08:00
Daniel
ee4ddf89c1
🎨 Refresh the data in the interface after moving the document https://github.com/siyuan-note/siyuan/issues/15762
Signed-off-by: Daniel <845765@qq.com>
2025-09-10 21:39:14 +08:00
Vanessa
9c37468386 🎨 https://github.com/siyuan-note/siyuan/issues/15762 2025-09-10 17:53:51 +08:00
Vanessa
de9e648e9e 🎨 https://github.com/siyuan-note/siyuan/issues/15782 2025-09-08 10:52:40 +08:00
Vanessa
006da6bc90 🎨 https://github.com/siyuan-note/siyuan/issues/15782 2025-09-08 09:48:36 +08:00
Vanessa
91626c8fb5 🎨 https://github.com/siyuan-note/siyuan/issues/15639 2025-09-03 09:41:42 +08:00
Vanessa
97f74ea172 🎨 https://github.com/siyuan-note/siyuan/issues/15546 2025-08-12 23:26:19 +08:00
Jeffrey Chen
be3db79688
🎨 Add data-id attribute to the buttons (#15052)
斜杠菜单中插件添加的选项、顶栏的插件菜单、顶栏的外观模式菜单,修正块引用锚文本的右键菜单

fix https://github.com/siyuan-note/siyuan/issues/12518
2025-07-23 17:53:25 +08:00
Vanessa
508eb93183 ♻️ https://github.com/siyuan-note/siyuan/pull/15347 2025-07-23 13:08:38 +08:00
Jeffrey Chen
c88f99646c
Replace the deprecated isSameNode method in DOM Level 4 with the === operator (#15347) 2025-07-23 12:21:59 +08:00
Vanessa
385cc3b8e3 🎨 https://github.com/siyuan-note/siyuan/issues/15303 2025-07-18 10:25:14 +08:00
Vanessa
6e838bb91a 🎨 https://github.com/siyuan-note/siyuan/pull/15102 2025-07-18 09:31:39 +08:00
Vanessa
dcc0539e4b 🎨 https://github.com/siyuan-note/siyuan/pull/15102 2025-07-14 18:03:03 +08:00
Jeffrey Chen
10a4742ebb
Improve drag performance and hover states in doc tree (#15102)
* 🎨 Improve drag performance and hover states in doc tree

Improve https://github.com/siyuan-note/siyuan/issues/13864

* 🎨 Improve drag performance and hover states in doc tree

Improve https://github.com/siyuan-note/siyuan/issues/13864
2025-07-13 16:14:50 +08:00
Vanessa
4c6da71be9 🎨 https://github.com/siyuan-note/siyuan/issues/15170 2025-06-29 11:33:22 +08:00
Vanessa
c4f42142a8 🎨 https://github.com/siyuan-note/siyuan/issues/15111 2025-06-22 18:11:04 +08:00
Vanessa
174f5a87b6 🎨 https://github.com/siyuan-note/siyuan/pull/14982 2025-06-07 22:09:35 +08:00
Vanessa
47c6e8ad11 ♻️ https://github.com/siyuan-note/siyuan/pull/14982 2025-06-07 13:34:29 +08:00
Jeffrey Chen
2eb679a803
🎨 Hide the "Closed notebooks" element if no notebooks exist (#14982)
fix #13887 Point 1
2025-06-07 13:26:27 +08:00
Vanessa
761a32c8df 🎨 https://github.com/siyuan-note/siyuan/issues/14878 2025-05-26 21:34:22 +08:00
Vanessa
256da1f5e2 ♻️ https://github.com/siyuan-note/siyuan/issues/14857 2025-05-21 22:28:35 +08:00
Vanessa
a5b1173eb1 🎨 https://github.com/siyuan-note/siyuan/issues/14813 2025-05-18 11:07:38 +08:00
Vanessa
47ec703f18 🎨 https://github.com/siyuan-note/siyuan/issues/14729 2025-05-08 16:57:30 +08:00
Vanessa
783573ee8a 🎨 https://github.com/siyuan-note/siyuan/issues/14725 2025-05-06 13:20:58 +08:00
Vanessa
a05faf6fc1 🎨 https://github.com/siyuan-note/siyuan/issues/14634 2025-04-18 11:19:49 +08:00