Skip to content

Commit 5bc232d

Browse files
authored
Add double-click on empty vertical tabs panel to open new tab (warpdotdev#12506)
## Description Double-clicking the empty area of the vertical tabs panel now opens a new tab, matching the common terminal-emulator pattern (empty tab-strip → new tab). This wires an `on_double_click` handler dispatching `WorkspaceAction::AddDefaultTab` onto the existing panel-level `Hoverable` in `vertical_tabs.rs` — the same one that already handles `on_right_click` for the empty space. `with_defer_events_to_children()` is already in place, so tab/pane row interactions (double-click to rename) and the right-click menu are unaffected; only double-clicks on the genuine empty space reach this handler. ## Linked Issue Closes warpdotdev#9390 - [x] The linked issue is labeled `ready-to-spec` or `ready-to-implement`. - [x] Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes). ## Testing - [x] I have manually tested my changes locally with `./script/run` Manually verified end-to-end (see video below): - Double-click the empty space in the vertical tabs panel → a new tab opens. - Double-click on an existing tab still renames it. No automated test added: this is event wiring to `WorkspaceAction::AddDefaultTab`, an existing and already-exercised action. The behavior is covered by the manual test above. ### Screenshots / Videos https://github.com/user-attachments/assets/8e57b7aa-468c-4236-97a9-29a5517de9b5 ## Agent Mode - [ ] Warp Agent Mode - This PR was created via Warp's AI Agent Mode CHANGELOG-IMPROVEMENT: Double-click the empty area of the vertical tabs panel to open a new tab.
1 parent 65381be commit 5bc232d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/workspace/view/vertical_tabs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,9 @@ fn render_vertical_tabs_panel(
16411641
});
16421642
}
16431643
})
1644+
.on_double_click(|ctx, _, _| {
1645+
ctx.dispatch_typed_action(WorkspaceAction::AddDefaultTab);
1646+
})
16441647
.with_defer_events_to_children()
16451648
.finish();
16461649

0 commit comments

Comments
 (0)