Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(desktop): show more text in tabs and add shift+cmd+arrow tab hotkeys (#9383)
Eric Hayese132afdf7163
diff --git a/apps/web/src/components/app/tab-layout/DesktopTabStrip.tsx b/apps/web/src/components/app/tab-layout/DesktopTabStrip.tsxindex 2fc817641b..ec4061e121 100644--- a/apps/web/src/components/app/tab-layout/DesktopTabStrip.tsx+++ b/apps/web/src/components/app/tab-layout/DesktopTabStrip.tsx@@ -28,7 +28,7 @@ function TabItem(props: { tabManager: TabManager; tab: DesktopTab }) {role="tab"aria-selected={active()}class={cn(- 'group flex h-8 min-w-[76px] max-w-56 flex-initial basis-56 items-center gap-1.5 rounded-md p-1 pl-2.5 text-xs select-none',+ 'group flex h-8 min-w-[76px] max-w-72 flex-initial basis-72 items-center gap-1.5 rounded-md p-1 pl-2.5 text-xs select-none',active()? 'bg-active text-ink': 'text-ink-muted not-touch:hover:bg-hover not-touch:hover:text-ink'diff --git a/apps/web/src/components/app/tab-layout/DesktopTabsController.tsx b/apps/web/src/components/app/tab-layout/DesktopTabsController.tsxindex de90852b45..6debcd7bda 100644--- a/apps/web/src/components/app/tab-layout/DesktopTabsController.tsx+++ b/apps/web/src/components/app/tab-layout/DesktopTabsController.tsx@@ -69,6 +69,34 @@ function registerTabHotkeys(tabManager: TabManager) {},runWithInputFocused: true,});++ // Browser-style arrows. Skipped while typing, where shift+cmd+arrow selects+ // to the line edge.+ registerHotkey({+ hotkey: 'shift+cmd+arrowright',+ scopeId: 'global',+ description: () => t('tabs.nextTab'),+ condition: () => tabManager.tabs().length > 1,+ keyDownHandler: () => {+ tabManager.activateNextTab(1);+ return true;+ },+ runWithInputFocused: false,+ hide: true,+ });++ registerHotkey({+ hotkey: 'shift+cmd+arrowleft',+ scopeId: 'global',+ description: () => t('tabs.previousTab'),+ condition: () => tabManager.tabs().length > 1,+ keyDownHandler: () => {+ tabManager.activateNextTab(-1);+ return true;+ },+ runWithInputFocused: false,+ hide: true,+ });}function TabsOwner(props: {diff --git a/docs/agent-guide/navigation.md b/docs/agent-guide/navigation.mdindex c4903c9859..0d86b102db 100644--- a/docs/agent-guide/navigation.md+++ b/docs/agent-guide/navigation.md@@ -25,7 +25,9 @@ rendering; past five, the least recently used unmount and reload when nextopened. Closing the active tab runs its unsaved-changes guards. A tab holding more than one split shows asplit icon with the count. The strip's `+` button (and `Cmd+T`) opens a tab onHome; the `X` or a middle click closes one (the last tab cannot close;-`Shift+Cmd+W` closes the active tab); `Ctrl+Tab` / `Ctrl+Shift+Tab` cycle.+`Shift+Cmd+W` closes the active tab); `Ctrl+Tab` / `Ctrl+Shift+Tab` cycle, as do+`Shift+Cmd+→` / `Shift+Cmd+←` outside text fields (where they select text).+Labels truncate at about 288px.Cmd+click (Ctrl elsewhere) on anything that navigates opens the destination ina background tab; adding Shift also switches to it. Tabs are not draggable.Tabs persist per user and restore on launch. In the browser and on other