Преглед изворни кода

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",