Commit graph

964 commits

Author SHA1 Message Date
Vanessa
0bec8594a1 Merge remote-tracking branch 'origin/dev' into dev 2025-10-21 20:22:04 +08:00
Vanessa
9dba5dbb4a 🎨 https://github.com/siyuan-note/siyuan/issues/16176 2025-10-21 20:21:33 +08:00
Jeffrey Chen
ba4dd38206
🎨 Improve #commonMenu menu (#16170)
fix https://github.com/siyuan-note/siyuan/pull/16141
2025-10-21 17:01:14 +08:00
Vanessa
b6345a8cbc ♻️ https://github.com/siyuan-note/siyuan/pull/16161 2025-10-21 10:49:18 +08:00
Jeffrey Chen
00dda414db
🎨 Improve automatic scrolling when dragging items in the outline (#16161)
fix https://github.com/siyuan-note/siyuan/pull/15846#issuecomment-3420412057
2025-10-20 20:58:59 +08:00
Vanessa
311f70f249 Revert "🎨 Improve automatic scrolling when dragging items in the outline (#15846)"
This reverts commit b3b5bbbc2b.
2025-10-20 11:28:46 +08:00
Jeffrey Chen
b3b5bbbc2b
🎨 Improve automatic scrolling when dragging items in the outline (#15846) 2025-10-20 11:15:39 +08:00
Vanessa
a115273ccf 🎨 https://github.com/siyuan-note/siyuan/issues/16121 2025-10-19 17:05:15 +08:00
Vanessa
8419c06646 🎨 https://github.com/siyuan-note/siyuan/issues/16121 2025-10-19 16:41:55 +08:00
Daniel
b4e10e5704
🎨 https://github.com/siyuan-note/siyuan/issues/16149 https://github.com/siyuan-note/siyuan/issues/16121
Signed-off-by: Daniel <845765@qq.com>
2025-10-19 09:57:41 +08:00
Vanessa
bb4da0232c ♻️ https://github.com/siyuan-note/siyuan/issues/16121 2025-10-18 11:41:57 +08:00
Jeffrey Chen
8725e5daa8
🎨 Improve #commonMenu menu (#16141)
* 改进菜单的 data-name 属性值和选项的 data-id 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133

* 改进菜单的 data-name 属性值和选项的 data-id 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133

* 更新数据库排序菜单文案

* 改进菜单的 data-name 属性值和选项的 data-id 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/16133

使用正则 (?:get|set)Attribute\("data-name"|new Menu\((?:"|Constants) 来搜索

* 改进菜单的 data-name 属性值和选项的 data-subname 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/15075

* 改进菜单的 data-name 属性值和选项的 data-subname 属性值

fix https://github.com/siyuan-note/siyuan/issues/12506 https://github.com/siyuan-note/siyuan/issues/15075
2025-10-18 10:41:11 +08:00
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