Skip to main content

queue_target_stack_moves

Function queue_target_stack_moves 

Source
pub(crate) async fn queue_target_stack_moves(
    state: &AppState,
    tab_id: &str,
    block_ids: &[String],
    target_block_id: &str,
    activate_block_id: Option<&str>,
    action_id: &str,
) -> Result<(), String>
Expand description

Tell the frontend that several blocks were moved — already, in the reducer — to the end of target_block_id’s pane (Command::LayoutStackMoveMany): one stackmove per block, in order, the visible tab’s (when it is one of them) carrying focused; and a stackactivate when the visible tab is a member of that pane that was not moved. The ids are <action_id>:<index>, which the calling frontend registered as its own. SPEC_PANE_TAB_MULTI_SELECT_MOVE_AND_COLLAPSED_EXPAND_2026_10_24.md §5.