mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-21 08:04:45 +00:00
feat: hooks
This commit is contained in:
@@ -14,6 +14,7 @@ import { useTerminal } from "@/context/terminal"
|
||||
import { DialogSelectFile } from "@/components/dialog-select-file"
|
||||
import { DialogSelectModel } from "@/components/dialog-select-model"
|
||||
import { DialogSelectMcp } from "@/components/dialog-select-mcp"
|
||||
import { DialogSelectPrompt } from "@/components/dialog-select-prompt"
|
||||
import { DialogFork } from "@/components/dialog-fork"
|
||||
import { showToast } from "@opencode-ai/ui/toast"
|
||||
import { findLast } from "@opencode-ai/util/array"
|
||||
@@ -376,6 +377,13 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
|
||||
keybind: "shift+mod+.",
|
||||
onSelect: () => local.agent.move(-1),
|
||||
}),
|
||||
agentCommand({
|
||||
id: "prompts.select",
|
||||
title: language.t("command.prompts.select"),
|
||||
description: language.t("command.prompts.select.description"),
|
||||
slash: "prompts",
|
||||
onSelect: () => dialog.show(() => <DialogSelectPrompt />),
|
||||
}),
|
||||
modelCommand({
|
||||
id: "model.variant.cycle",
|
||||
title: language.t("command.model.variant.cycle"),
|
||||
|
||||
Reference in New Issue
Block a user