diff options
| author | lukeflo | 2024-11-15 12:47:26 +0100 |
|---|---|---|
| committer | lukeflo | 2024-11-15 12:47:26 +0100 |
| commit | 0489c8a4cb5b589576dca8e4d393c230c8d9ad16 (patch) | |
| tree | 584fb8cedcb78a2a7ee06989b11d3f848df7b5a7 /src/tui | |
| parent | b8e470fb3bc768ef9a1146061f81dac8e7a8deb4 (diff) | |
| download | bibiman-0489c8a4cb5b589576dca8e4d393c230c8d9ad16.tar.gz bibiman-0489c8a4cb5b589576dca8e4d393c230c8d9ad16.zip | |
some minor fixes
Diffstat (limited to 'src/tui')
| -rw-r--r-- | src/tui/popup.rs | 2 | ||||
| -rw-r--r-- | src/tui/ui.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/tui/popup.rs b/src/tui/popup.rs index 9011a3b..08abfb0 100644 --- a/src/tui/popup.rs +++ b/src/tui/popup.rs @@ -28,6 +28,7 @@ pub enum PopupKind { Help, Message, Selection, + Search, } #[derive(Debug, Default)] @@ -47,6 +48,7 @@ impl PopupArea { ("TAB: ", "Toggle areas (Entries, Keywords)"), ("/|Ctrl+f: ", "Enter search mode"), ("q|Ctrl+c: ", "Quit bibiman"), + ("?: ", "Show help"), ("Entry Table", "sub"), ("j,k|↓,↑: ", "Select next/previous entry"), ("h,l|←,→: ", "Select next/previous column"), diff --git a/src/tui/ui.rs b/src/tui/ui.rs index fed893f..c1fa658 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -210,7 +210,7 @@ pub fn render_header(frame: &mut Frame, rect: Rect) { } pub fn render_footer(app: &mut App, frame: &mut Frame, rect: Rect) { - match &app.bibiman.current_area { + match app.bibiman.current_area { CurrentArea::SearchArea => { let search_title = { match app.bibiman.former_area { |
