From 3a1cfa6c731bc4c33348034cb918b7a4dbe2af8b Mon Sep 17 00:00:00 2001
From: Adam <2363879+adamdotdevin@users.noreply.github.com>
Date: Wed, 31 Dec 2025 11:24:45 -0600
Subject: chore(app): keybind tooltip component
---
packages/app/src/pages/layout.tsx | 38 +++++++----------------
packages/app/src/pages/session.tsx | 62 ++++++++++++--------------------------
2 files changed, 30 insertions(+), 70 deletions(-)
(limited to 'packages/app/src/pages')
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index a45c4d792..ce753ecc3 100644
--- a/packages/app/src/pages/layout.tsx
+++ b/packages/app/src/pages/layout.tsx
@@ -22,7 +22,7 @@ import { ResizeHandle } from "@opencode-ai/ui/resize-handle"
import { Button } from "@opencode-ai/ui/button"
import { Icon } from "@opencode-ai/ui/icon"
import { IconButton } from "@opencode-ai/ui/icon-button"
-import { Tooltip } from "@opencode-ai/ui/tooltip"
+import { Tooltip, TooltipKeybind } from "@opencode-ai/ui/tooltip"
import { Collapsible } from "@opencode-ai/ui/collapsible"
import { DiffChanges } from "@opencode-ai/ui/diff-changes"
import { Spinner } from "@opencode-ai/ui/spinner"
@@ -709,17 +709,13 @@ export default function Layout(props: ParentProps) {
-
- Archive session
- {command.keybind("session.archive")}
-
- }
+ title="Archive session"
+ keybind={command.keybind("session.archive")}
>
archiveSession(props.session)} />
-
+
>
@@ -787,17 +783,9 @@ export default function Layout(props: ParentProps) {
-
- New session
- {command.keybind("session.new")}
-
- }
- >
+
-
+
@@ -880,15 +868,11 @@ export default function Layout(props: ParentProps) {
-
- Toggle sidebar
- {command.keybind("sidebar.toggle")}
-
- }
+ title="Toggle sidebar"
+ keybind={command.keybind("sidebar.toggle")}
inactive={expanded()}
>
-
+
void }) {
/>
-
- New session
- {command.keybind("session.new")}
-
- }
- >
+
-
+
@@ -187,14 +179,10 @@ function Header(props: { onMobileMenuToggle?: () => void }) {
-
- Toggle review
- {command.keybind("review.toggle")}
-
- }
+ title="Toggle review"
+ keybind={command.keybind("review.toggle")}
>
-
+
-
- Toggle terminal
- {command.keybind("terminal.toggle")}
-
- }
+ title="Toggle terminal"
+ keybind={command.keybind("terminal.toggle")}
>
-
+
-
- Open file
- {command.keybind("file.open")}
-
- }
+
dialog.show(() => )}
/>
-
+
@@ -1178,17 +1158,13 @@ export default function Page() {
{(pty) => }
-
- New terminal
- {command.keybind("terminal.new")}
-
- }
+
-
+
--
cgit v1.2.3