Commit 398a147
ux: hint Escape key when no tasks match in interactive selector (#235)
## Summary
When a user runs a non-existent task (e.g. `vp run zzzzz`), the
interactive selector pre-fills the search with the typo and shows an
empty results list. Without additional context, users may think the
command is hanging.
This adds an actionable hint to the empty state message:
```
Select a task (↑/↓, Enter to run, type to search): zzzzz
┌── added
▼
No matching tasks. Press Escape to clear search.
```
This reminds users they are in a search state and gives them a clear
next step to recover, rather than leaving them stuck on a seemingly
unresponsive screen.
## Test plan
- [x] E2E snapshot test updated and passing
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2e30409 commit 398a147
File tree
2 files changed
+2
-2
lines changed- crates
- vite_select/src
- vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments