Skip to content

Commit 84a3ba8

Browse files
BagToadCopilot
authored andcommitted
fix(huh prompter): remove unused fields and imports
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f92fab6 commit 84a3ba8

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

internal/prompter/multi_select_with_search.go

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff 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.
112107
func (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 {

0 commit comments

Comments
 (0)