warp
warp copied to clipboard
Support tab group renaming
Description
Adds inline rename support for tab groups in the vertical tabs panel.
- Double-click a group header to edit its name
- Newly-created groups (
Create new group,New group from tab) auto-open the rename editor so users can name them immediately) - Empty input is treated as cancel — the existing name is preserved
Changes
workspace/action.rs— NewWorkspaceAction::RenameTabGroup(TabGroupId)workspace/util.rs— Addedtab_group_being_renamed: Option<TabGroupId>toWorkspaceStatewithset/clear/is_any/is/getaccessors.workspace/view.rs- New
tab_group_rename_editoreditor view finish_tab_group_rename/cancel_tab_group_renamecommit/abort the rename, restoring focus to the active tab.rename_tab_groupopens the inline editor, seeded with the existing name or "New Group" with the text pre-selected.create_new_tab_groupandnew_tab_group_from_tabnow dispatchesRenameTabGroupviadispatch_typed_action_deferredso the group's header mounts in the next render before focus is requested.
- New
workspace/view/vertical_tabs.rs— Group header conditionally renders the rename editor whenis_tab_group_being_renamed(group.id)is true; double-click on the header dispatchesRenameTabGroup.
Linked Issue
https://linear.app/warpdotdev/issue/APP-4618/vertical-tab-group-renaming-support
Testing
- [x] I have manually tested my changes locally with
./script/run
Screenshots / Videos
@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