Jump to tab with Cmd+1-9 (Ctrl elsewhere), Firefox style

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jokin
2026-07-12 00:06:55 +02:00
co-authored by Claude Fable 5
parent aed565e424
commit c7b0418904
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -326,6 +326,12 @@ export class PanelsService {
this.setActiveWorkspace(next.id);
}
/** Jump to a tab by visual position; negative counts from the end (⌘9 = last). */
goToWorkspace(index: number): void {
const target = this.workspaces().at(index);
if (target) this.setActiveWorkspace(target.id);
}
/** Tab label: "Local" for a local/local pair, else the remote titles. */
workspaceName(workspace: Workspace): string {
const remoteTitles = [workspace.left, workspace.right]