diff --git a/src/tui.rs b/src/tui.rs index b2b4b67..13673f4 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -10,7 +10,8 @@ use ratatui::{ }; use tachyonfx::{fx, Duration as FxDuration, Effect, EffectRenderer, Shader}; -const KEYBINDS: &str = " [q] quit [s] sync [f] filter updated [/] search "; +const KEYBINDS: &str = " [q]uit [s]ync [f]ilter updated [/] search "; +const KEYBINDS_SELECTED: &str = " [q]uit [s]ync [enter] take [n]uke [f]ilter updated [/] search "; const KEYBINDS_SEARCH: &str = " [esc] cancel [enter] search "; const PACKAGE_ICON: &str = " "; @@ -147,6 +148,10 @@ impl AppState { fn draw_searchbar(&self, frame: &mut Frame, area: Rect) { let title = if self.is_syncing { " synchronizing... " + } else if !self.search_input.is_empty() { + " search " + } else if self.filter_updated { + " filtered " } else { " nvrs " };