浏览代码

add /theme

Dax Raad 5 月之前
父节点
当前提交
2a7ab45605
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

+ 5 - 0
packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

@@ -250,6 +250,11 @@ export function Autocomplete(props: {
         description: "show status",
         onSelect: () => command.trigger("opencode.status"),
       },
+      {
+        display: "/theme",
+        description: "toggle theme",
+        onSelect: () => command.trigger("theme.switch"),
+      },
       {
         display: "/help",
         description: "show help",