Repository navigation
fix(tui): honour rebound paging keys in the Help menu and episode list - #643
Merged
LargeModGames merged 1 commit intoSep 28, 2026
Merged
Conversation
The Help menu paged with a literal Ctrl+d/Ctrl+u and the episode list jumped with a literal Ctrl+a/Ctrl+e, so rebinding next_page, previous_page, jump_to_start or jump_to_end did nothing there. Match the configured bindings like track_table.rs does, and guard jump_to_end against an empty episode page, which underflowed. Fixes LargeModGames#598 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Warning Review limit reachedNext included review available in 59 minutes. View limit detailsLimit details: You’ve used all 4 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: LargeModGames/spotatui/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
LargeModGames
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #598.
Ctrl+d/Ctrl+uarms now matchkeys.next_page/keys.previous_page.Ctrl+e/Ctrl+aarms now matchkeys.jump_to_end/keys.jump_to_start, liketrack_table.rs.jump_to_enduseslen().checked_sub(1), so an empty page keeps the first row instead of underflowing.As the issue says, a user who rebinds Next Page loses Ctrl+d on the Help menu, same as on track tables. No
app.user_config.keys.X =writes undersrc/tui/handlers: the tests build aUserConfigfirst and pass it toApp::new.Tests:
rebound_next_page_key_pages_the_help_menu(PageDown pages, then Ctrl+d no longer does),rebound_jump_to_end_key_selects_the_last_episodeandjump_to_end_on_an_empty_episode_page_keeps_the_first_row.test_help_menu_paginationis unchanged and still passes.Testing
cargo fmt --all -- --check: cleancargo clippy --no-default-features --features telemetry,tui -- -D warnings: cleancargo test --no-default-features --features telemetry,tui: 1312 passed, 0 failed... help_menuand... episode_tablelist the new testslen() - 1put back, all three new tests fail (the empty-page one with the overflow).Additional notes
This is one of five small PRs I opened together (for #606, #598, #597, #596 and #601). Each changelog entry sits at a different spot in
[Unreleased], and I test-merged all five in three orders without conflicts; together they pass the slim checks (1327 tests).Written with AI coding assistants: Codex drafted fixes for these issues, and Claude Code rebuilt each one on current main against the issue text and re-tested it.
🤖 Generated with Claude Code