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.3k stars 1.36k forks source link

Heading block collapse all sibling headings/collapse all subheadings feature #7929

Open Zuoqiu-Yingyi opened 1 year ago

Zuoqiu-Yingyi commented 1 year ago

子标题块折叠所有同级标题/折叠所有次级标题功能

In what scenarios do you need this feature?

与列表块一样, 标题块也是文档层级的一部分, 存在折叠/展开的需求, 希望与列表项的折叠/展开交互逻辑同一
Like list blocks, heading blocks are part of the document hierarchy, and there is a requirement to collapse/expand them, which is expected to be the same logic as the collapse/expand interaction for list items

Describe the optimal solution

操作 列表项 标题块
点击小三角 折叠/展开当前列表项 折叠/展开当前标题块
Alt + 点击小三角 折叠/展开当前列表项的所有次级列表项 折叠/展开当前标题块的所有次级标题块
Alt + 点击块标 折叠/展开当前列表项的所有同级列表项 折叠/展开当前标题块的所有同级标题块

Describe the candidate solution

No response

Other information

No response

jih3657 commented 1 year ago

同意

SuperSparta117 commented 1 year ago

对于标题块很多的应用场景,真的很需要

TCOTC commented 2 months ago

11754

In what scenarios do you need this feature?

比如想要折叠 3、4、5 ,就可以先对 3 使用「折叠下方同级标题」、再对 6 使用「展开下方同级标题」:

p.s. 当然实际的应用场景应该有更多的标题和文本,这里只是一个例子

image

Describe the optimal solution

标题块块标增加功能:折叠下方同级标题、展开下方同级标题

不对在超级块、列表块等容器块里的同级标题生效

Other information

这个 issue 还能作为 #11752 需求的一种不够完全的替代方案

TCOTC commented 1 month ago

相关问题: