From fce59db94ac3efd3c3977dfdd4e1a12fe590f517 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:48:14 -0500 Subject: chore: simplify completions --- packages/tui/internal/app/app.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'packages/tui/internal/app') 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 -- cgit v1.2.3