diff --git a/crates/vite_select/src/interactive.rs b/crates/vite_select/src/interactive.rs index 5574fc2b..45e2c16f 100644 --- a/crates/vite_select/src/interactive.rs +++ b/crates/vite_select/src/interactive.rs @@ -434,7 +434,7 @@ pub fn render_items(writer: &mut impl Write, params: &RenderParams<'_>) -> anyho // Empty state if !has_items { - write!(writer, " No matching tasks.{line_ending}")?; + write!(writer, " No matching tasks. Press Escape to clear search.{line_ending}")?; lines += 1; } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive enter with no results does nothing.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive enter with no results does nothing.snap index 6d57a6bf..0d5fa856 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive enter with no results does nothing.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive enter with no results does nothing.snap @@ -25,7 +25,7 @@ Select a task (↑/↓, Enter to run, type to search): @ expect-milestone: task-select:zzzzz:0 Select a task (↑/↓, Enter to run, type to search): zzzzz - No matching tasks. + No matching tasks. Press Escape to clear search. @ write-key: enter @ write-key: escape @ expect-milestone: task-select::0