Skip to content

Improve TOC Bulk Actions UX: Shift+Click, One-Step Undo#2709

Merged
stanislaw merged 13 commits intomainfrom
mettta/TOC_collapsing
Mar 6, 2026
Merged

Improve TOC Bulk Actions UX: Shift+Click, One-Step Undo#2709
stanislaw merged 13 commits intomainfrom
mettta/TOC_collapsing

Conversation

@mettta
Copy link
Collaborator

@mettta mettta commented Mar 6, 2026

This PR improves TOC collapse/expand usability and refactors the TOC script structure.

What was added

  1. Shift+Click subtree bulk toggle
  • Added Shift+Click on a TOC branch control to collapse/expand its whole subtree.
  • Existing double-click subtree behavior is kept.
  1. Top bulk controls panel
  • Added two controls at the top of TOC: Collapse all and Expand all. They apply to the whole TOC tree in one click.
  1. One-step undo for bulk actions
  • Added one-step undo for the latest bulk operation.
  • After a bulk click, that same button becomes Undo.
  • If user clicks the other bulk button, Undo switches to that last clicked button.
  • If user performs a normal tree action (non-bulk), Undo is cleared.
  • Trivial snapshots (all branches in the same state) are not stored.

@mettta mettta requested a review from stanislaw March 6, 2026 01:39
@stanislaw stanislaw merged commit 5677861 into main Mar 6, 2026
46 of 51 checks passed
@stanislaw stanislaw deleted the mettta/TOC_collapsing branch March 6, 2026 08:13
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