From ace58035818652ebf400fe71e102de050950e3af Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Sun, 15 Feb 2026 11:19:51 -0800 Subject: [PATCH] Rename terminal-shortcuts module to keybindings - Rename `terminal-shortcuts.ts` and its test to `keybindings` - Update ChatView and ThreadTerminalDrawer imports to use new module path --- apps/web/src/components/ChatView.tsx | 2 +- apps/web/src/components/ThreadTerminalDrawer.tsx | 2 +- .../web/src/{terminal-shortcuts.test.ts => keybindings.test.ts} | 2 +- apps/web/src/{terminal-shortcuts.ts => keybindings.ts} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename apps/web/src/{terminal-shortcuts.test.ts => keybindings.test.ts} (99%) rename apps/web/src/{terminal-shortcuts.ts => keybindings.ts} (100%) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index dd3667a60b05f7fe8aa597f587bf68fb1a1892fc..35b99b011f143bd666da24d0e2c770f583681efd 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -58,7 +58,7 @@ import { isTerminalToggleShortcut, resolveTerminalKeybindings, shortcutLabelForCommand, -} from "../terminal-shortcuts"; +} from "../keybindings"; import ChatMarkdown from "./ChatMarkdown"; import ThreadTerminalDrawer from "./ThreadTerminalDrawer"; import { useNativeApi } from "../hooks/useNativeApi"; diff --git a/apps/web/src/components/ThreadTerminalDrawer.tsx b/apps/web/src/components/ThreadTerminalDrawer.tsx index 3373f913662c1ce58f88da2abbbd17fe6e700aec..d9e544ab94debfb92999ead1bb34469706e2f4ee 100644 --- a/apps/web/src/components/ThreadTerminalDrawer.tsx +++ b/apps/web/src/components/ThreadTerminalDrawer.tsx @@ -18,7 +18,7 @@ import { preferredTerminalEditor, resolvePathLinkTarget, } from "../terminal-links"; -import { isTerminalClearShortcut } from "../terminal-shortcuts"; +import { isTerminalClearShortcut } from "../keybindings"; import { DEFAULT_THREAD_TERMINAL_HEIGHT, DEFAULT_THREAD_TERMINAL_ID, diff --git a/apps/web/src/terminal-shortcuts.test.ts b/apps/web/src/keybindings.test.ts similarity index 99% rename from apps/web/src/terminal-shortcuts.test.ts rename to apps/web/src/keybindings.test.ts index 6de3d641a8e070fb855d1d674e54642f1782b187..f71cb8f09b42a4c203bf962cf37518bbd3fada2e 100644 --- a/apps/web/src/terminal-shortcuts.test.ts +++ b/apps/web/src/keybindings.test.ts @@ -10,7 +10,7 @@ import { resolveTerminalKeybindings, shortcutLabelForCommand, type ShortcutEventLike, -} from "./terminal-shortcuts"; +} from "./keybindings"; function event(overrides: Partial = {}): ShortcutEventLike { return { diff --git a/apps/web/src/terminal-shortcuts.ts b/apps/web/src/keybindings.ts similarity index 100% rename from apps/web/src/terminal-shortcuts.ts rename to apps/web/src/keybindings.ts -- 2.54.0