Add an in-pane search to filter agents in the projects pane - #265
Open
patrickdappollonio wants to merge 1 commit into
Open
Add an in-pane search to filter agents in the projects pane#265patrickdappollonio wants to merge 1 commit into
patrickdappollonio wants to merge 1 commit into
Conversation
Press / in the agents pane to open a search box inside the list and type to narrow it down by agent title, branch, or project name. Arrows move between matches, Enter opens the highlighted agent, and Esc clears it. Projects with no matches drop out, agents hidden inside collapsed projects are revealed, and the files pane search now uses the same key handling so typed characters edit the query instead of firing shortcuts.
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.
Pressing
/while the projects pane is focused opens a single-line search box inside the pane and filters the agent list as you type, matching against each agent's title, branch name, or project name. Project names stay as group headers for context, agents whose details don't match are hidden, and any project left with no matches drops out of the view entirely. Results stay one line each, so the arrow keys move between matches,Enteropens the highlighted agent, andEscclears the search and restores the full list.A few details make it feel right: a project-name match surfaces all of that project's agents, matches hidden inside a collapsed project are revealed while searching — and the project auto-expands only when you actually open one of those agents, never on cancel. Typed characters that are also global shortcuts, like
qor?, edit the query instead of firing, andTab, the palette key, or clicking another pane cleanly leave search rather than being swallowed. The same key-handling fix is applied to the pre-existing files-pane search so the two behave consistently.Under the hood the filtering lives in the single place that flattens projects and agents into the navigable list, the search box reuses the existing text-input component, and the highlight stays anchored to the same agent across background refreshes. The change is config-free and additive: the new
/binding is user-rebindable like every other key, and the rest of the pane's behavior is unchanged.