From 3ecdb59f3bb225ae0dc0cbb8d46e96a168a0ac70 Mon Sep 17 00:00:00 2001 From: vkahl <42325420+vkahl@users.noreply.github.com> Date: Thu, 12 Feb 2026 22:35:42 +0100 Subject: [PATCH] Clear the prefix selection buffer when changing location After changing directory, the previously typed in prefix (for finding a selection) is cleared immediately without waiting for the timeout. This allows traversing known directory structures very quickly by typing in very few letters for each prefix and hitting enter in between. --- src/app.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.rs b/src/app.rs index 99db210..1c76f35 100644 --- a/src/app.rs +++ b/src/app.rs @@ -4179,6 +4179,8 @@ impl Application for App { self.activate_nav_model_location(&tab_path); self.tab_model.text_set(entity, tab_title); + // clear the prefix selection buffer when changing location + self.type_select_prefix.clear(); commands.push(Task::batch([ self.update_title(), self.update_watcher(),