Skip to content

[6023] 移除焦点工具栏中冗余的章节大纲下拉工具 - #4731

Merged
da-liii merged 1 commit into
mainfrom
da/6023/remove_focus_section_menu
Oct 16, 2026
Merged

da-liii merged 1 commit into
mainfrom
da/6023/remove_focus_section_menu

Conversation

@MoonL79

@MoonL79 MoonL79 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

任务背景与改动说明

在任务 [6013] 引入了现代化 QML 左侧大纲侧边栏(OutlineSidebar)后,编辑器顶部焦点工具栏与右键焦点菜单中的章节大纲下拉跳转工具已完全被替代,沦为冗余入口。

主要改动

  1. 剥离焦点工具栏与焦点菜单大纲入口(TeXmacs/progs/text/text-menu.scm):
    • 移除正文编辑时的 (focus-document-extra-icons t) 与 (focus-document-extra-menu t)
    • 移除章节标题编辑时的 (focus-extra-icons t) 与 (focus-extra-menu t)
  2. 清理孤立的辅助函数与死代码:
    • 彻底移除 focus-section-menu、all-sections、filter-sections、get-verbatim-section-title、is-current-tree、is-book-top-level、is-section-top-level
  3. 测试平稳演进与重构:
    • 安全移除测试已废弃过滤算法的 TeXmacs/tests/71_41.scm
    • 重构 TeXmacs/tests/1322.scm,改用标准 (document-outline) 进行结构断言
    • 运行 xmake r 6013 与 xmake r 1322 验证测试全部通过

@da-liii
da-liii merged commit 0f37ba4 into main Oct 16, 2026
5 checks passed
@da-liii
da-liii deleted the da/6023/remove_focus_section_menu branch October 16, 2026 06:32
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

Successfully merging this pull request may close these issues.

2 participants