Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(huh prompter): remove unused fields and imports
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
2 people authored and williammartin committed Mar 26, 2026
commit 84a3ba83e469e758280873d1c0c892bfc816487a
16 changes: 5 additions & 11 deletions internal/prompter/multi_select_with_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import (
"fmt"
"io"
"strings"
"time"

"charm.land/bubbles/v2/key"
"charm.land/bubbles/v2/spinner"
"charm.land/bubbles/v2/textinput"
"charm.land/bubbles/v2/viewport"
tea "charm.land/bubbletea/v2"
"charm.land/huh/v2"
"charm.land/lipgloss/v2"
Expand All @@ -23,17 +21,14 @@ type multiSelectSearchField struct {
// configuration
title string
searchTitle string
placeholder string
searchFunc func(string) MultiSelectSearchResult

// state
mode msMode // which sub-component has focus
search textinput.Model
cursor int
viewport viewport.Model
loading bool
loadingStart time.Time
spinner spinner.Model
mode msMode // which sub-component has focus
search textinput.Model
cursor int
loading bool
spinner spinner.Model

// options and selections
options []msOption
Expand Down Expand Up @@ -111,7 +106,6 @@ func newMultiSelectSearchField(
// deliver the result via msSearchResultMsg.
func (m *multiSelectSearchField) startSearch(query string) tea.Cmd {
m.loading = true
m.loadingStart = time.Now()
searchFunc := m.searchFunc
return tea.Batch(
func() tea.Msg {
Expand Down