use fzf for autocomplete

This commit is contained in:
2026-01-23 15:23:36 -05:00
parent 2517d0cb37
commit c5c733d14c
6 changed files with 59 additions and 112 deletions

View File

@@ -118,8 +118,8 @@ func isDebuff(s horse.Skill) bool {
return false
}
var skillGlobalAuto = sync.OnceValue(func() *autocomplete.Set {
var set autocomplete.Set
var skillGlobalAuto = sync.OnceValue(func() *autocomplete.Set[string] {
var set autocomplete.Set[string]
for _, id := range global.OrderedSkills {
s := global.AllSkills[id]
set.Add(s.Name, s.Name)