feat: tree-view task selector with grouped packages#219
Merged
branchseer merged 9 commits intomainfrom Mar 11, 2026
Merged
Conversation
…ommands - Add left-padding to align all commands at the same column - Color task names with cyan, package prefixes with light cyan - Selected line uses uniform bold with no color changes - Split labels into package# prefix and task name for independent styling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Place the alignment padding between the colon and command instead of before the label, so commands are visually aligned at the same column. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When selecting a task from the interactive selector (`vp run`), match the package by filesystem path rather than display name. This bypasses CLI specifier parsing and directly constructs a TaskQuery with PackageQuery::containing_package(path). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Group tasks by package in the interactive selector with non-selectable headers, and sort current-package items first in both interactive and non-interactive modes. Introduces DisplayRow as the single source of truth for the flattened display list, replacing the old before_render callback with built-in group_filtered logic in vite_select. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ender loop Use crossterm's Display-implementing types directly in write! instead of calling .to_string(), eliminating 2-3 heap allocations per visible item per render frame. Also simplify prefix selection with a match expression. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Selected items: DarkGrey marker, Blue+Bold label, DarkGrey description. Non-selected items: default label color, DarkGrey description. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fengmk2
approved these changes
Mar 11, 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
Redesigns the interactive task selector (
vp run) to group tasks by package in a tree view, making it much easier to navigate workspaces with many packages.Before (flat list)
After (tree view, grouped by package)
When running from
packages/app:Current package tasks appear first without a header, so you immediately see the most relevant tasks. Other packages show as dimmed headers with their relative path.
Selecting a task from another package
Navigate into another package's group and press Enter — the output shows the full
package#taskidentifier:→
Selected task: lib#buildFuzzy search still works
lib#buildto search with package qualifier#, packages are sorted by best fuzzy match instead of current-package-firstColors
Matches the
vpcommand picker for visual consistency:Non-interactive mode unchanged
Piped input (
echo '' | vp run) still outputs the flatpackage#task: commandformat.Test plan
cargo test -p vite_selectandcargo test -p vite_task_bin --test e2e_snapshots -- task-selectpass🤖 Generated with Claude Code