diff --git a/packages/tui/src/app.tsx b/packages/tui/src/app.tsx index af1a59a7ca7..329b54a9523 100644 --- a/packages/tui/src/app.tsx +++ b/packages/tui/src/app.tsx @@ -668,7 +668,7 @@ function App(props: { pair?: DialogPairCredentials }) { })), { name: "session.tab.next", - title: "Next open session tab", + title: "Next tab", category: "Session", palette: undefined, enabled: sessionTabs.enabled, @@ -676,7 +676,7 @@ function App(props: { pair?: DialogPairCredentials }) { }, { name: "session.tab.previous", - title: "Previous open session tab", + title: "Previous tab", category: "Session", palette: undefined, enabled: sessionTabs.enabled, @@ -684,7 +684,7 @@ function App(props: { pair?: DialogPairCredentials }) { }, { name: "session.tab.history.back", - title: "Back in session tab history", + title: "Back in tab history", category: "Session", palette: undefined, enabled: sessionTabs.enabled, @@ -692,7 +692,7 @@ function App(props: { pair?: DialogPairCredentials }) { }, { name: "session.tab.history.forward", - title: "Forward in session tab history", + title: "Forward in tab history", category: "Session", palette: undefined, enabled: sessionTabs.enabled, @@ -700,7 +700,7 @@ function App(props: { pair?: DialogPairCredentials }) { }, { name: "session.tab.next_unread", - title: "Next unread session tab", + title: "Next unread tab", category: "Session", palette: undefined, enabled: sessionTabs.enabled, @@ -708,7 +708,7 @@ function App(props: { pair?: DialogPairCredentials }) { }, { name: "session.tab.previous_unread", - title: "Previous unread session tab", + title: "Previous unread tab", category: "Session", palette: undefined, enabled: sessionTabs.enabled, @@ -716,14 +716,14 @@ function App(props: { pair?: DialogPairCredentials }) { }, { name: "session.tab.close", - title: "Close current session tab", + title: "Close tab", category: "Session", enabled: sessionTabs.enabled, run: () => sessionTabs.close(), }, ...Array.from({ length: 9 }, (_, i) => ({ name: `session.tab.select.${i + 1}`, - title: `Switch to session tab ${i + 1}`, + title: `Switch to tab ${i + 1}`, category: "Session", palette: undefined, enabled: sessionTabs.enabled, diff --git a/packages/tui/src/config/index.tsx b/packages/tui/src/config/index.tsx index 09ed747b098..390bd355df7 100644 --- a/packages/tui/src/config/index.tsx +++ b/packages/tui/src/config/index.tsx @@ -127,13 +127,13 @@ export const Info = Schema.Struct({ tabs: Schema.optional( Schema.Struct({ enabled: Schema.optional(Schema.Boolean).annotate({ - description: "Use a persistent session tab strip instead of pinned quick-switch sessions", + description: "Use a persistent tab strip instead of pinned quick-switch sessions", }), scope: Schema.optional(Schema.Literals(["global", "cwd"])).annotate({ - description: "Share session tabs globally or keep a separate set for each working directory", + description: "Share tabs globally or keep a separate set for each working directory", }), }), - ).annotate({ description: "Session tab settings" }), + ).annotate({ description: "Tab strip settings" }), mini: Schema.optional( Schema.Struct({ thinking: Schema.optional(Schema.Literals(["show", "hide"])).annotate({ diff --git a/packages/tui/src/config/v1/keybind.ts b/packages/tui/src/config/v1/keybind.ts index 363ae79f1a3..f958a438986 100644 --- a/packages/tui/src/config/v1/keybind.ts +++ b/packages/tui/src/config/v1/keybind.ts @@ -87,13 +87,13 @@ export const Definitions = { session_move: keybind("none", "Move session"), session_new: keybind("n", "Create a new session"), session_list: keybind("l", "List all sessions"), - session_tab_next: keybind("ctrl+tab,right,alt+shift+]", "Switch to next open session tab"), - session_tab_previous: keybind("ctrl+shift+tab,left,alt+shift+[", "Switch to previous open session tab"), - session_tab_history_back: keybind("ctrl+o", "Go back in session tab history"), - session_tab_history_forward: keybind("ctrl+i", "Go forward in session tab history"), - session_tab_next_unread: keybind("down", "Switch to next unread session tab"), - session_tab_previous_unread: keybind("up", "Switch to previous unread session tab"), - session_tab_close: keybind("w", "Close current session tab"), + session_tab_next: keybind("ctrl+tab,right,alt+shift+]", "Switch to next open tab"), + session_tab_previous: keybind("ctrl+shift+tab,left,alt+shift+[", "Switch to previous open tab"), + session_tab_history_back: keybind("ctrl+o", "Go back in tab history"), + session_tab_history_forward: keybind("ctrl+i", "Go forward in tab history"), + session_tab_next_unread: keybind("down", "Switch to next unread tab"), + session_tab_previous_unread: keybind("up", "Switch to previous unread tab"), + session_tab_close: keybind("w", "Close current tab"), session_timeline: keybind("g", "Show session timeline"), session_fork: keybind("none", "Fork session from message"), session_rename: keybind("ctrl+r", "Rename session"), @@ -118,15 +118,15 @@ export const Definitions = { session_quick_switch_7: keybind("7", "Switch to session in quick slot 7"), session_quick_switch_8: keybind("8", "Switch to session in quick slot 8"), session_quick_switch_9: keybind("9", "Switch to session in quick slot 9"), - session_tab_select_1: keybind("1,ctrl+1", "Switch to session tab 1"), - session_tab_select_2: keybind("2,ctrl+2", "Switch to session tab 2"), - session_tab_select_3: keybind("3,ctrl+3", "Switch to session tab 3"), - session_tab_select_4: keybind("4,ctrl+4", "Switch to session tab 4"), - session_tab_select_5: keybind("5,ctrl+5", "Switch to session tab 5"), - session_tab_select_6: keybind("6,ctrl+6", "Switch to session tab 6"), - session_tab_select_7: keybind("7,ctrl+7", "Switch to session tab 7"), - session_tab_select_8: keybind("8,ctrl+8", "Switch to session tab 8"), - session_tab_select_9: keybind("9,ctrl+9", "Switch to session tab 9"), + session_tab_select_1: keybind("1,ctrl+1", "Switch to tab 1"), + session_tab_select_2: keybind("2,ctrl+2", "Switch to tab 2"), + session_tab_select_3: keybind("3,ctrl+3", "Switch to tab 3"), + session_tab_select_4: keybind("4,ctrl+4", "Switch to tab 4"), + session_tab_select_5: keybind("5,ctrl+5", "Switch to tab 5"), + session_tab_select_6: keybind("6,ctrl+6", "Switch to tab 6"), + session_tab_select_7: keybind("7,ctrl+7", "Switch to tab 7"), + session_tab_select_8: keybind("8,ctrl+8", "Switch to tab 8"), + session_tab_select_9: keybind("9,ctrl+9", "Switch to tab 9"), stash_delete: keybind("ctrl+d", "Delete stash entry"), model_provider_list: keybind("ctrl+a", "Open provider list from model dialog"), diff --git a/packages/tui/src/feature-plugins/system/storybook/session-tabs.tsx b/packages/tui/src/feature-plugins/system/storybook/session-tabs.tsx index 439a05e4774..fff7c625f5a 100644 --- a/packages/tui/src/feature-plugins/system/storybook/session-tabs.tsx +++ b/packages/tui/src/feature-plugins/system/storybook/session-tabs.tsx @@ -354,7 +354,7 @@ function SessionTabsStory(props: { context: Plugin.Context }) { paddingRight={1} flexDirection="row" > - storybook / session tabs + storybook / tabs space/s run | t add | d close | r reset | ←/→ 1-0 move | drag reorders | esc back @@ -366,6 +366,6 @@ function SessionTabsStory(props: { context: Plugin.Context }) { export const sessionTabsStory: Story = { id: "session-tabs", - title: "Session tabs", + title: "Tabs", render: (context) => , }