Commit b2e8a046f1

b2e8a046f1f522d30c840458ec076fe48c2a2dc6

parent: c324653056

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-27 11:41 UTC

Next episode prompt with rofi

Layout: unified · split

cmd/curd/main.go +9 −2
@@ -415,8 +415,15 @@ func main() {
415 415
416 if userCurdConfig.NextEpisodePrompt { 416 if userCurdConfig.NextEpisodePrompt {
417 var answer string 417 var answer string
418 fmt.Println("Start next episode? (y/n)") 418 if userCurdConfig.RofiSelection {
419 fmt.Scanln(&answer) 419 answer, err = internal.GetUserInputFromRofi("Start next episode? (y/n)")
420 if err != nil {
421 internal.ExitCurd(err)
422 }
423 } else {
424 fmt.Println("Start next episode? (y/n)")
425 fmt.Scanln(&answer)
426 }
420 if answer == "y" || answer == "Y" || answer == "yes" || answer == "Yes" || answer == "YES" || answer == "" { 427 if answer == "y" || answer == "Y" || answer == "yes" || answer == "Yes" || answer == "YES" || answer == "" {
421 } else { 428 } else {
422 internal.ExitCurd(nil) 429 internal.ExitCurd(nil)