Feat: Add F2 Keybind to Cycle Through the 5 Most Recent Models (#1778)

This commit is contained in:
spoons-and-mirrors
2025-08-11 14:00:32 +02:00
committed by GitHub
parent 8db75266d0
commit 73a8356b10
3 changed files with 44 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ const (
ToolDetailsCommand CommandName = "tool_details"
ModelListCommand CommandName = "model_list"
AgentListCommand CommandName = "agent_list"
ModelCycleRecentCommand CommandName = "model_cycle_recent"
ThemeListCommand CommandName = "theme_list"
FileListCommand CommandName = "file_list"
FileCloseCommand CommandName = "file_close"
@@ -256,6 +257,11 @@ func LoadFromConfig(config *opencode.Config) CommandRegistry {
Keybindings: parseBindings("<leader>a"),
Trigger: []string{"agents"},
},
{
Name: ModelCycleRecentCommand,
Description: "cycle recent models",
Keybindings: parseBindings("f2"),
},
{
Name: ThemeListCommand,
Description: "list themes",