Browse Source

fix(app): open terminal pane when creating new terminal (#9926)

Ronan Kearns 1 month ago
parent
commit
af1e2887bd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/app/src/pages/session.tsx

+ 4 - 1
packages/app/src/pages/session.tsx

@@ -509,7 +509,10 @@ export default function Page() {
       description: language.t("command.terminal.new.description"),
       description: language.t("command.terminal.new.description"),
       category: language.t("command.category.terminal"),
       category: language.t("command.category.terminal"),
       keybind: "ctrl+alt+t",
       keybind: "ctrl+alt+t",
-      onSelect: () => terminal.new(),
+      onSelect: () => {
+        if (terminal.all().length > 0) terminal.new()
+        view().terminal.open()
+      },
     },
     },
     {
     {
       id: "steps.toggle",
       id: "steps.toggle",