Interactive Retry Prompt on Invalid Anime Search
Feature Request: Interactive Retry Prompt on Invalid Anime Search
Current Behavior
When a user enters an incorrect or partial anime title, ani-cli exits immediately with:
No results found!
This requires the user to restart ani-cli manually to retry the search.
Example:
$ ani-cli
Search anime: onepiec
No results found!
Proposed Improvement
Instead of exiting immediately, allow users to retry the search interactively when no results are found.
Example flow:
$ ani-cli
Search anime: onepiec
No results found for "onepiec".
Tip: Try alternate spellings or press Ctrl+C to exit.
Search anime: one piece
Suggested Scope (v1)
Limit this behavior to the initial anime search query only.
This keeps the feature simple and avoids affecting:
- episode selection flows
- continue-watching logic
- other interactive menus
Important Considerations
Non-interactive Usage
The retry prompt should only activate when stdin is interactive (TTY).
For scripted/piped usage, current behavior should remain unchanged to avoid breaking automation.
Example:
[ -t 0 ]
Exit Path
Users should still be able to exit easily via:
Ctrl+C- optional retry limit (if preferred by maintainers)
UI Consistency
If possible, behavior should remain consistent across:
- plain terminal mode
fzfrofi
Why This Helps
- Improves UX for typos and romanization differences
- Reduces restart friction
- Matches common CLI interaction patterns
- Makes searching feel smoother and more forgiving
Notes
This is intended as a UX enhancement, not a bug/crash fix. The command currently exits cleanly — this proposal only aims to improve the retry experience.
That would actually be nice
Is Anyone still working on it ?
@Ashish2343 This request is about reducing UX friction for interactive users — a retry prompt avoids full restarts on typos without touching automation. For a PR, the change should stay limited to interactive TTY sessions on the initial search query, preserving current behavior for non‑interactive, rofi/dmenu, and CLI arg usage with clean exits via Ctrl+C / Ctrl+D