siyuan-note / siyuan

A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang.
https://b3log.org/siyuan
GNU Affero General Public License v3.0
18.55k stars 1.39k forks source link

块引右键菜单添加「删除块引及定义块」 #12558

Open Achuan-2 opened 2 hours ago

Achuan-2 commented 2 hours ago

In what scenarios do you need this feature?

主要场景

Describe the optimal solution

块引右键菜单能添加「删除块引及定义块」,一键删除块引和及其定义块,考虑到存在误删的可能性,点击按钮后,应该添加一个确认按钮,或者撤回支持恢复块引及其定义块 原来的「删除」功能文案改为「删除块引」 PixPin_2024-09-23_11-33-48

Describe the candidate solution

No response

Other information

No response

TCOTC commented 2 hours ago

所有文档中的相同块引都一并删除吗?

Achuan-2 commented 28 minutes ago

所有文档中的相同块引都一并删除吗?

不需要,只需要删除当前选中的块引及其定义块

TCOTC commented 1 minute ago

如果做这个功能的话,要考虑删除的块是叶子块的情况。比如删除列表项块内的段落块,要同时删除列表项块。