Add proper fuzzy matching for time tags

This commit is contained in:
Martin Pander
2026-02-02 15:54:39 +01:00
parent 938ed177f1
commit f5d297e6ab
2 changed files with 74 additions and 16 deletions

View File

@ -41,7 +41,7 @@ func NewTimeEditorPage(com *common.Common, interval *timewarrior.Interval) *Time
// Create tags autocomplete with combinations from past intervals
tagCombinations := com.TimeW.GetTagCombinations()
tagsInput := autocomplete.New(tagCombinations, 3)
tagsInput := autocomplete.New(tagCombinations, 3, 10)
tagsInput.SetPlaceholder("Space separated, use \"\" for tags with spaces")
tagsInput.SetValue(formatTags(interval.Tags))
tagsInput.SetWidth(50)