feat(tui): even better model selector

This commit is contained in:
adamdotdevin
2025-07-14 11:44:19 -05:00
parent 80b77caec0
commit f1e7e7c138
8 changed files with 675 additions and 67 deletions

View File

@@ -43,7 +43,7 @@ func (c *CommandCompletionProvider) getCommandCompletionItem(
Title: title,
Value: value,
ProviderID: c.GetId(),
})
}, dialog.WithBackgroundColor(t.BackgroundElement()))
}
func (c *CommandCompletionProvider) GetChildEntries(
@@ -91,7 +91,7 @@ func (c *CommandCompletionProvider) GetChildEntries(
}
// Find fuzzy matches
matches := fuzzy.RankFind(query, commandNames)
matches := fuzzy.RankFindFold(query, commandNames)
// Sort by score (best matches first)
sort.Sort(matches)