diff options
| author | David Hill <[email protected]> | 2026-01-20 22:02:25 +0000 |
|---|---|---|
| committer | opencode <[email protected]> | 2026-01-20 22:04:13 +0000 |
| commit | 80dc74a0ec7c5bd3a03f95a8fd658993d302da2a (patch) | |
| tree | 53940734f895102891471493aed5f43731e58de2 | |
| parent | a0636fcd50ebf9f9bddb54718fbb319b7df6dee2 (diff) | |
| download | opencode-80dc74a0ec7c5bd3a03f95a8fd658993d302da2a.tar.gz opencode-80dc74a0ec7c5bd3a03f95a8fd658993d302da2a.zip | |
add keyboard shortcut (mod+,) to open settings dialog
| -rw-r--r-- | packages/app/src/pages/layout.tsx | 15 |
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" |
