diff options
| author | adamdottv <[email protected]> | 2025-07-03 12:48:14 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-07-03 12:48:22 -0500 |
| commit | fce59db94ac3efd3c3977dfdd4e1a12fe590f517 (patch) | |
| tree | e1281ba8fa1009bce24d6258798072307cdc601c /packages/tui/internal/app | |
| parent | 3e2a0c7281d449452d6808fdff80e2a1d8cf998d (diff) | |
| download | opencode-fce59db94ac3efd3c3977dfdd4e1a12fe590f517.tar.gz opencode-fce59db94ac3efd3c3977dfdd4e1a12fe590f517.zip | |
chore: simplify completions
Diffstat (limited to 'packages/tui/internal/app')
| -rw-r--r-- | packages/tui/internal/app/app.go | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/tui/internal/app/app.go b/packages/tui/internal/app/app.go index 9b341c19b..6b59acaec 100644 --- a/packages/tui/internal/app/app.go +++ b/packages/tui/internal/app/app.go @@ -46,9 +46,6 @@ type SendMsg struct { Text string Attachments []Attachment } -type CompletionDialogTriggeredMsg struct { - InitialValue string -} type OptimisticMessageAddedMsg struct { Message opencode.Message } @@ -129,7 +126,11 @@ func New( func (a *App) Key(commandName commands.CommandName) string { t := theme.CurrentTheme() base := styles.NewStyle().Background(t.Background()).Foreground(t.Text()).Bold(true).Render - muted := styles.NewStyle().Background(t.Background()).Foreground(t.TextMuted()).Faint(true).Render + muted := styles.NewStyle(). + Background(t.Background()). + Foreground(t.TextMuted()). + Faint(true). + Render command := a.Commands[commandName] kb := command.Keybindings[0] key := kb.Key @@ -201,7 +202,10 @@ func (a *App) InitializeProvider() tea.Cmd { } } -func getDefaultModel(response *opencode.ConfigProvidersResponse, provider opencode.Provider) *opencode.Model { +func getDefaultModel( + response *opencode.ConfigProvidersResponse, + provider opencode.Provider, +) *opencode.Model { if match, ok := response.Default[provider.ID]; ok { model := provider.Models[match] return &model |
