Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zuoqiu-Yingyi opened this issue Apr 8, 2023 · 7 comments
Assignees

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

Zuoqiu-Yingyi commented Apr 8, 2023

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

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
Copy link

jih3657 commented Apr 8, 2023

同意

@88250 88250 changed the title 子标题块折叠所有同级标题/折叠所有次级标题功能 | Heading block collapse all sibling headings/collapse all subheadings feature Heading block collapse all sibling headings/collapse all subheadings feature Apr 8, 2023
@SuperSparta117
Copy link

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

@TCOTC
Copy link
Contributor

TCOTC commented Jun 19, 2024

#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 需求的一种不够完全的替代方案

@Mctalos
Copy link

Mctalos commented Jan 2, 2025

+1,整理标题比较多的长文件,很需要这个功能。

操作逻辑和列表保持一致即可。

@wc123888
Copy link

+++10086

@wrwe3888
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants