warp icon indicating copy to clipboard operation
warp copied to clipboard

Add move to group sidecar menu

Open johnturcoo opened this issue 6 months ago • 1 comments

Description

Adds a Move to group sidecar menu to the tab right-click context menu. When the user hovers Move to group, a panel opens beside the parent menu listing every other tab group (ordered by visual position in the tabs panel). Selecting a group dispatches WorkspaceAction::MoveTabToGroup, moving the tab into that group and dismissing both menus. Mirrors the existing new-session worktree sidecar pattern.

Gated by FeatureFlag::GroupedTabs — when disabled, the entire tab-group section of the right-click menu (including this item) is hidden.

Changes

  • app/src/tab.rs: Added MOVE_TO_GROUP_LABEL constant and threaded &HashMap<TabGroupId, TabGroup> through the tab menu builders so tab_group_menu_items can insert the submenu-parent item when other groups exist.
  • app/src/workspace/view.rs: Added the sidecar menu view, and new helpers (build_move_to_group_sidecar_items, update_move_to_group_sidecar, hide_move_to_group_sidecar, handle_move_to_group_sidecar_event) that wire parent hover events into open/hide logic and render the sidecar as an overflow-aware positioned overlay.

Linked Issue

https://linear.app/warpdotdev/issue/APP-4620/render-sidecar-menu-for-tab-grouping-options

Testing

  • [x] I have manually tested my changes locally with ./script/run

Screenshots / Videos

Demo video

johnturcoo avatar May 28 '26 19:05 johnturcoo

@johnturcoo

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

warp-for-oss[bot] avatar May 28 '26 19:05 warp-for-oss[bot]