瀏覽代碼

tui: add /editor command to autocomplete for opening external editor

Dax Raad 10 月之前
父節點
當前提交
31d0caee38
共有 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

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