History

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

Julius Marminge committed 9 months ago

Commit ace58031 parent 645b0374 files · +3 −3Browse files

Unified · Split

4 files
  1. apps/web/src/components/ChatView.tsx +1 −1
  2. apps/web/src/components/ThreadTerminalDrawer.tsx +1 −1
  3. apps/web/src/keybindings.test.ts +1 −1
  4. apps/web/src/keybindings.ts +0 −0
apps/web/src/components/ChatView.tsx+1−1
@@ -58,7 +58,7 @@ import { · 57 unmodified lines
58 isTerminalToggleShortcut,58 isTerminalToggleShortcut,
59 resolveTerminalKeybindings,59 resolveTerminalKeybindings,
60 shortcutLabelForCommand,60 shortcutLabelForCommand,
61} from "../terminal-shortcuts";61} from "../keybindings";
62import ChatMarkdown from "./ChatMarkdown";62import ChatMarkdown from "./ChatMarkdown";
63import ThreadTerminalDrawer from "./ThreadTerminalDrawer";63import ThreadTerminalDrawer from "./ThreadTerminalDrawer";
64import { useNativeApi } from "../hooks/useNativeApi";64import { useNativeApi } from "../hooks/useNativeApi";
apps/web/src/components/ThreadTerminalDrawer.tsx+1−1
@@ -18,7 +18,7 @@ import { · 17 unmodified lines
18 preferredTerminalEditor,18 preferredTerminalEditor,
19 resolvePathLinkTarget,19 resolvePathLinkTarget,
20} from "../terminal-links";20} from "../terminal-links";
21import { isTerminalClearShortcut } from "../terminal-shortcuts";21import { isTerminalClearShortcut } from "../keybindings";
22import {22import {
23 DEFAULT_THREAD_TERMINAL_HEIGHT,23 DEFAULT_THREAD_TERMINAL_HEIGHT,
24 DEFAULT_THREAD_TERMINAL_ID,24 DEFAULT_THREAD_TERMINAL_ID,
apps/web/src/keybindings.test.tsrenamed from apps/web/src/terminal-shortcuts.test.ts+1−1
@@ -10,7 +10,7 @@ import { · 9 unmodified lines
10 resolveTerminalKeybindings,10 resolveTerminalKeybindings,
11 shortcutLabelForCommand,11 shortcutLabelForCommand,
12 type ShortcutEventLike,12 type ShortcutEventLike,
13} from "./terminal-shortcuts";13} from "./keybindings";
14 14
15function event(overrides: Partial<ShortcutEventLike> = {}): ShortcutEventLike {15function event(overrides: Partial<ShortcutEventLike> = {}): ShortcutEventLike {
16 return {16 return {
apps/web/src/keybindings.tsrenamed from apps/web/src/terminal-shortcuts.ts+0−0

File renamed without changes.