[Repo Assist] feat: navigate filtered list with arrow keys without leaving filter mode#153
Draft
github-actions[bot] wants to merge 1 commit intomainfrom
Draft
Conversation
…r mode Previously, all navigation keys were silently ignored while the local filter input was active, requiring the user to press Enter before they could move the cursor. This is unintuitive — in most TUI filter prompts (fzf, telescope, etc.) you can navigate results without leaving the input field. This commit adds Up/Down/PageUp/PageDown/Home/End handlers to handle_local_filter_input so the selection can be moved while still in filter mode. The filter text is preserved; only the cursor position changes. No existing behaviour is affected. Two regression tests are added: - local_filter_up_down_navigate_without_leaving_filter_mode - local_filter_home_end_navigate_to_bounds Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Apr 26, 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.
🤖 This PR was created by Repo Assist, an automated AI assistant.
What
Allows
↑/↓/PgUp/PgDn/Home/Endto navigate the package list while the LocalFilter prompt is active (Installed / Upgrades views).Before: All navigation keys were silently ignored in LocalFilter mode. The user had to press
Enterto exit the prompt first, then navigate.After: The cursor moves immediately while typing the filter — the filter text is preserved, only the selection changes. Pressing
EscorEnterstill works exactly as before.Why
Popular TUI filter prompts (fzf, Telescope, Vim's
/search) all let you navigate results without leaving the input field. The previous behaviour was a friction point: you'd type a filter to narrow the list, then have to pressEnterbefore you could select the package you wanted.Change
handle_local_filter_inputinsrc/handler.rsgains six new match arms for the navigation keys, each using the same logic as the equivalent arms inhandle_normal_mode. No existing behaviour is changed.Test Status
Note
🔒 Integrity filter blocked 1 item
The following item were blocked because they don't meet the GitHub integrity level.
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter: