Add Ctrl-u in search mode to clear the current search pattern

This commit is contained in:
Benoit de Chezelles authored and Wez Furlong committed 2021-02-07 18:57:06 -08:00
1 parent 79656f2bf3
commit 1eaa7ed47c
1 file changed
+6
+6
View File
@@ -213,6 +213,12 @@ impl Pane for SearchOverlay {
r.pattern.pop();
r.update_search();
}
(KeyCode::Char('u'), KeyModifiers::CTRL) => {
// CTRL-u to clear the pattern
let mut r = self.renderer.borrow_mut();
r.pattern.clear();
r.update_search();
}
_ => {}
}
Ok(())