Significant speedup

This commit is contained in:
Thomas Avé 2024-08-01 18:47:20 +02:00
parent 85225e8e99
commit edb50c3b34
1 changed files with 3 additions and 3 deletions

6
tui.go
View File

@ -122,12 +122,12 @@ func initialModel(items []list.Item) model {
const defaultWidth = 20
l := list.New(items, itemDelegate{}, defaultWidth, 14)
l.SetShowFilter(true)
l.SetShowPagination(false)
l.SetShowStatusBar(false)
l.SetFilteringEnabled(true)
l.SetShowHelp(false)
l.SetShowTitle(false)
l.SetShowPagination(false)
l.SetFilteringEnabled(true)
l.SetShowFilter(true)
l.Styles.TitleBar = lipgloss.NewStyle()
ti := textinput.New()
ti.Focus()