File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ import (
44 "fmt"
55 "io"
66 "strings"
7- "time"
87
98 "charm.land/bubbles/v2/key"
109 "charm.land/bubbles/v2/spinner"
1110 "charm.land/bubbles/v2/textinput"
12- "charm.land/bubbles/v2/viewport"
1311 tea "charm.land/bubbletea/v2"
1412 "charm.land/huh/v2"
1513 "charm.land/lipgloss/v2"
@@ -23,17 +21,14 @@ type multiSelectSearchField struct {
2321 // configuration
2422 title string
2523 searchTitle string
26- placeholder string
2724 searchFunc func (string ) MultiSelectSearchResult
2825
2926 // state
30- mode msMode // which sub-component has focus
31- search textinput.Model
32- cursor int
33- viewport viewport.Model
34- loading bool
35- loadingStart time.Time
36- spinner spinner.Model
27+ mode msMode // which sub-component has focus
28+ search textinput.Model
29+ cursor int
30+ loading bool
31+ spinner spinner.Model
3732
3833 // options and selections
3934 options []msOption
@@ -111,7 +106,6 @@ func newMultiSelectSearchField(
111106// deliver the result via msSearchResultMsg.
112107func (m * multiSelectSearchField ) startSearch (query string ) tea.Cmd {
113108 m .loading = true
114- m .loadingStart = time .Now ()
115109 searchFunc := m .searchFunc
116110 return tea .Batch (
117111 func () tea.Msg {
You can’t perform that action at this time.
0 commit comments