diff options
| author | spoons-and-mirrors <[email protected]> | 2025-08-11 14:00:32 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-11 07:00:32 -0500 |
| commit | 73a8356b10d537f7d2b31a9fb777192a8522ab54 (patch) | |
| tree | 3205439f152f1c4d23b9703dadca338a30d85725 /packages/tui/internal/commands/command.go | |
| parent | 8db75266d0da48bfd1257d528373549dc0814584 (diff) | |
| download | opencode-73a8356b10d537f7d2b31a9fb777192a8522ab54.tar.gz opencode-73a8356b10d537f7d2b31a9fb777192a8522ab54.zip | |
Feat: Add F2 Keybind to Cycle Through the 5 Most Recent Models (#1778)
Diffstat (limited to 'packages/tui/internal/commands/command.go')
| -rw-r--r-- | packages/tui/internal/commands/command.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/tui/internal/commands/command.go b/packages/tui/internal/commands/command.go index 55f118aaa..516caab79 100644 --- a/packages/tui/internal/commands/command.go +++ b/packages/tui/internal/commands/command.go @@ -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" @@ -257,6 +258,11 @@ func LoadFromConfig(config *opencode.Config) CommandRegistry { Trigger: []string{"agents"}, }, { + Name: ModelCycleRecentCommand, + Description: "cycle recent models", + Keybindings: parseBindings("f2"), + }, + { Name: ThemeListCommand, Description: "list themes", Keybindings: parseBindings("<leader>t"), |
