summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2026-01-20 22:02:25 +0000
committeropencode <[email protected]>2026-01-20 22:04:13 +0000
commit80dc74a0ec7c5bd3a03f95a8fd658993d302da2a (patch)
tree53940734f895102891471493aed5f43731e58de2
parenta0636fcd50ebf9f9bddb54718fbb319b7df6dee2 (diff)
downloadopencode-80dc74a0ec7c5bd3a03f95a8fd658993d302da2a.tar.gz
opencode-80dc74a0ec7c5bd3a03f95a8fd658993d302da2a.zip
add keyboard shortcut (mod+,) to open settings dialog
-rw-r--r--packages/app/src/pages/layout.tsx15
1 files changed, 13 insertions, 2 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index 3fe3c75ec..9d873e08a 100644
--- a/packages/app/src/pages/layout.tsx
+++ b/packages/app/src/pages/layout.tsx
@@ -832,6 +832,13 @@ export default function Layout(props: ParentProps) {
onSelect: () => openServer(),
},
{
+ id: "settings.open",
+ title: "Open settings",
+ category: "Settings",
+ keybind: "mod+comma",
+ onSelect: () => openSettings(),
+ },
+ {
id: "session.previous",
title: "Previous session",
category: "Session",
@@ -2052,9 +2059,13 @@ export default function Layout(props: ParentProps) {
</DragDropProvider>
</div>
<div class="shrink-0 w-full pt-3 pb-3 flex flex-col items-center gap-2">
- <Tooltip placement={sidebarProps.mobile ? "bottom" : "right"} value="Settings">
+ <TooltipKeybind
+ placement={sidebarProps.mobile ? "bottom" : "right"}
+ title="Settings"
+ keybind={command.keybind("settings.open")}
+ >
<IconButton icon="settings-gear" variant="ghost" size="large" onClick={openSettings} />
- </Tooltip>
+ </TooltipKeybind>
<Tooltip placement={sidebarProps.mobile ? "bottom" : "right"} value="Help">
<IconButton
icon="help"