Skip to content

希望支持相邻容器块合并首层容器 #14444

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

Closed
Imuvux opened this issue Mar 25, 2025 · 2 comments
Closed

希望支持相邻容器块合并首层容器 #14444

Imuvux opened this issue Mar 25, 2025 · 2 comments

Comments

@Imuvux
Copy link

Imuvux commented Mar 25, 2025

In what scenarios do you need this feature?

多个断开的列表块不能完美地快速合并,现有方法的问题:

1: 选中后先转换为段落,再全部选中转换为列表

这会导致指向列表项的引用失效,而且每次转换要重新选中,操作步骤多。

2: 选中后拖动列表项图标实现合并

这样不能一次合并多个相邻列表块,列表块超过2个时只能逐个合并。解决了这点的话也不失为一种方案。

3: 选中后拖到目标列表子层,再反缩进

这个方法同时结合了法1操作多和法2不能处理多列表块的缺点。

相关帖子:思源列表反馈 | 有点奇怪的列表项逻辑

真正需要合并列表时,可能会面对历史操作遗留的多个独立列表块,很需要快速合并的方法。如果想把若干列表项拆出新列表只要选中后拖出去就行了,而这种情形的出现频率远少于只想要单个列表的场景。

Describe the optimal solution

选中若干相邻的列表块,在右键菜单中提供《合并首层容器》功能。相邻引述块、相邻超级块同理,即若被选中块a,b,c首层容器类型一致,则点击合并操作仅保留首个选中块a的外层容器,其余选中块b,c的子层移到a的原有子层下方;如果容器类型为有序列表则更新序号。可以参考《合并为超级块》的选项位置。

Describe the candidate solution

No response

Other information

No response

@88250
Copy link
Member

88250 commented Mar 25, 2025

感谢提议,但是不考虑了,原因:

  1. 可以通过拖拽达到合并的目的
  2. 大列表块会影响性能
  3. 其他容器块合并不一定有需求场景(比如多个相邻的超级块,需要批量合并的场景并不多)

另外,自动合并也不考虑,因为会破坏原有使用习惯(比如自动合并两个相邻的列表块,这样就无法做到相邻的列表块了)。

@88250 88250 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2025
@TCOTC
Copy link
Contributor

TCOTC commented Mar 25, 2025

因为思源有聚焦的机制,自动合并会有很多潜在的问题,建议通过插件做手动合并。

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

3 participants