pub fn move_stack_members(
tree: &mut LayoutNode,
block_ids: &[String],
target_block_id: &str,
activate_block_id: Option<&str>,
) -> Option<Vec<String>>Expand description
Move every block in block_ids that is not already in target_block_id’s
leaf into it, appended in the order given (each as move_stack_member
with StackMovePosition::End would), then make activate_block_id the
leaf’s visible tab when it is one of its members.
All or nothing: it works on a copy and replaces tree only when every
step succeeded, so a block missing from the tree, a missing target, or a
refused step leaves the tree as it was and returns None. On success it
returns the node ids of the panes emptied (and so removed) by the move, in
the order they went. Blocks already in the target’s leaf stay where they
are, and a repeated id is moved once.
SPEC_PANE_TAB_MULTI_SELECT_MOVE_AND_COLLAPSED_EXPAND_2026_10_24.md §5.