From 2dfc299714ab059f7bb34c8d848580e923cd0fad Mon Sep 17 00:00:00 2001 From: brennanb2025 Date: Tue, 19 May 2026 14:28:42 -0700 Subject: [PATCH] Fix macro splits to use tab groups Co-authored-by: Orca --- .../components/settings/ExperimentalPane.tsx | 4 +- .../settings/TerminalMacrosSection.tsx | 6 +-- .../terminal-macros/TerminalMacroDialog.tsx | 21 +++------ .../src/lib/launch-terminal-macro.test.ts | 17 +++++-- src/renderer/src/lib/launch-terminal-macro.ts | 47 ++++++++++++++----- 5 files changed, 58 insertions(+), 37 deletions(-) diff --git a/src/renderer/src/components/settings/ExperimentalPane.tsx b/src/renderer/src/components/settings/ExperimentalPane.tsx index b02e25a89e0..222456af0cb 100644 --- a/src/renderer/src/components/settings/ExperimentalPane.tsx +++ b/src/renderer/src/components/settings/ExperimentalPane.tsx @@ -162,8 +162,8 @@ export function ExperimentalPane({

- Define named terminal launch presets that open a new tab, optionally create a split - right or down, and seed the new terminal with startup text. This remains + Define named terminal launch presets that open a new tab in the current tab group or + a new tab split, then seed the new terminal with startup text. This remains experimental and appears in the tab-bar new-tab menu only when enabled.

diff --git a/src/renderer/src/components/settings/TerminalMacrosSection.tsx b/src/renderer/src/components/settings/TerminalMacrosSection.tsx index 107c886e7f2..0c5bcc5f172 100644 --- a/src/renderer/src/components/settings/TerminalMacrosSection.tsx +++ b/src/renderer/src/components/settings/TerminalMacrosSection.tsx @@ -21,10 +21,10 @@ type EditorState = function layoutLabel(layout: TerminalMacro['layout']): string { if (layout === 'split-right') { - return 'Split Right' + return 'Tab Split Right' } if (layout === 'split-down') { - return 'Split Down' + return 'Tab Split Down' } return 'Tab' } @@ -54,7 +54,7 @@ export function TerminalMacrosSection({

- Each macro opens a named tab and can seed one startup split. + Each macro opens a named tab in the current tab group or a new tab split.