diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-07-03 22:57:06 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-07-03 22:57:06 +0530 |
commit | bd0da056a9f4c1246ad5a980b1c824b7382478cf (patch) | |
tree | 3aedc5be2f841f8492b176cc77dcc95087caeede /ui/search.go | |
parent | 8494b2933908d54d0c64ca08d877efe4e3d8d7b3 (diff) |
dynamically handling prompt length, search length, offset, etc
Diffstat (limited to 'ui/search.go')
-rw-r--r-- | ui/search.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/search.go b/ui/search.go index c62006a..7ea045a 100644 --- a/ui/search.go +++ b/ui/search.go @@ -30,8 +30,6 @@ import ( // only search animes probably only now func AnimeSearch(label, searchString string) a.Anime { - // TODO: load promptLength from config - promptLength := 5 animes := mal.SearchAnime(searchString) template := &p.SelectTemplates { @@ -57,7 +55,7 @@ More Details To Be Added Later Items: animes, Templates: template, Searcher: searcher, - Size: promptLength, + Size: PromptLength, } animeIndex, _, err := prompt.Run() @@ -70,8 +68,6 @@ More Details To Be Added Later } func MangaSearch(label, searchString string) m.Manga { - // TODO: load promptLength from config - promptLength := 5 mangas := mal.SearchManga(searchString) template := &p.SelectTemplates { @@ -97,7 +93,7 @@ More Details To Be Added Later Items: mangas, Templates: template, Searcher: searcher, - Size: promptLength, + Size: PromptLength, } mangaIndex, _, err := prompt.Run() |