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
@@ -16,6 +16,8 @@ generate_keybindings! {
backspace,
search,
filter,
home,
end,
submit,
quit,
esc
@@ -55,6 +57,14 @@ pub const DEFAULT_KEYBINDINGS: KeyBindings = KeyBindings {
key: Key::Char('f'),
desc: "Filter",
},
home: KeyBinding {
key: Key::Home,
desc: "Home",
},
end: KeyBinding {
key: Key::End,
desc: "End",
},
submit: KeyBinding {
key: Key::Enter,
desc: "Select",