use fzf for autocomplete
This commit is contained in:
4
skill.go
4
skill.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user