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 dd3667a60b..35b99b011f 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 3373f91366..d9e544ab94 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 6de3d641a8..f71cb8f09b 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