Refactored filtering and searching logic to be more clean and added home/end support in tables.

This commit is contained in:
2023-08-08 10:50:04 -06:00
parent 864dd4e331
commit 24a36443e9
7 changed files with 223 additions and 96 deletions
+10
View File
@@ -12,6 +12,8 @@ pub enum Key {
Enter,
Esc,
Backspace,
Home,
End,
Char(char),
Unknown,
}
@@ -47,6 +49,14 @@ impl From<KeyEvent> for Key {
code: KeyCode::Backspace,
..
} => Key::Backspace,
KeyEvent {
code: KeyCode::Home,
..
} => Key::Home,
KeyEvent {
code: KeyCode::End,
..
} => Key::End,
KeyEvent {
code: KeyCode::Enter,
..