https://github.com/Termix-SSH/Support/issues/1264
This commit is contained in:
LukeGus committed 2026-09-20 18:15:45 -05:00
1 parent 2c8d13323b
commit 42e7861073
4 files changed
+24 -4

No files matched your search

+2 -1
View File
@@ -15,7 +15,8 @@ export type KeybindingActionType =
| "runSnippet"
| "nextTab"
| "previousTab"
| "openCommandPalette";
| "openCommandPalette"
| "reconnectSession";
export interface KeybindingAction {
type: KeybindingActionType;
+17 -3
View File
@@ -517,9 +517,12 @@ export function AppShell({
).filter(
(binding) =>
binding.enabled &&
["nextTab", "previousTab", "openCommandPalette"].includes(
binding.action.type,
),
[
"nextTab",
"previousTab",
"openCommandPalette",
"reconnectSession",
].includes(binding.action.type),
);
})
.catch(() => {});
@@ -538,6 +541,17 @@ export function AppShell({
setCommandPaletteOpen(true);
return;
}
if (type === "reconnectSession") {
const tabId = activeTabIdRef.current;
if (!tabId) return;
const termRef = terminalRefs.current.get(tabId);
(
termRef?.current as
| import("@/features/terminal/Terminal").TerminalHandle
| null
)?.reconnect();
return;
}
const currentTabs = tabsRef.current;
if (currentTabs.length < 2) return;
const index = currentTabs.findIndex(
+1
View File
@@ -4462,6 +4462,7 @@
"actionNextTab": "Switch to next tab",
"actionPreviousTab": "Switch to previous tab",
"actionOpenCommandPalette": "Open quick search",
"actionReconnectSession": "Reconnect current session",
"controlCodeLabel": "Letter",
"textLabel": "Text to send",
"appendEnterLabel": "Press Enter after sending",
+4
View File
@@ -47,6 +47,7 @@ const ACTION_LABEL_KEYS: Record<KeybindingActionType, string> = {
nextTab: "newUi.sidebar.keybindings.actionNextTab",
previousTab: "newUi.sidebar.keybindings.actionPreviousTab",
openCommandPalette: "newUi.sidebar.keybindings.actionOpenCommandPalette",
reconnectSession: "newUi.sidebar.keybindings.actionReconnectSession",
};
function generateId(): string {
@@ -510,6 +511,9 @@ export function KeybindingsDialog({
<option value="openCommandPalette">
{t("newUi.sidebar.keybindings.actionOpenCommandPalette")}
</option>
<option value="reconnectSession">
{t("newUi.sidebar.keybindings.actionReconnectSession")}
</option>
</select>
{actionType === "paste" && (
<span className="text-xs text-muted-foreground">