From 1f404fdb78b9254379848086fba222f6317ea339 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 12 Jun 2022 17:47:33 +0530 Subject: added functionality to update status --- ui/search.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/search.go') diff --git a/ui/search.go b/ui/search.go index b884faf..ee25604 100644 --- a/ui/search.go +++ b/ui/search.go @@ -33,7 +33,7 @@ func SearchAndGetID(label, searchString string) int { animes := mal.SearchAnime(searchString) template := &p.SelectTemplates { - Label: "{{ . }}?", + Label: "{{ . }}", Active: "{{ .Title | magenta }}", Inactive: "{{ .Title }}", Selected: "{{ .Title }}", @@ -47,7 +47,7 @@ More Details To Be Added Later searcher := func(input string, index int) bool { title := strings.Replace(strings.ToLower(animes[index].Title), " ", "", -1) input = strings.Replace(strings.ToLower(input), " ", "", -1) - return strings.Contains(title, title) + return strings.Contains(title, input) } prompt := p.Select { -- cgit v1.2.3