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.
This commit is contained in:
vkahl 2026-02-12 22:35:42 +01:00 committed by Jacob Kauffmann
parent fc32390f52
commit 3ecdb59f3b

View file

@ -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(),