aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlukeflo2024-11-15 12:47:26 +0100
committerlukeflo2024-11-15 12:47:26 +0100
commit0489c8a4cb5b589576dca8e4d393c230c8d9ad16 (patch)
tree584fb8cedcb78a2a7ee06989b11d3f848df7b5a7 /src
parentb8e470fb3bc768ef9a1146061f81dac8e7a8deb4 (diff)
downloadbibiman-0489c8a4cb5b589576dca8e4d393c230c8d9ad16.tar.gz
bibiman-0489c8a4cb5b589576dca8e4d393c230c8d9ad16.zip
some minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/app.rs4
-rw-r--r--src/tui/popup.rs2
-rw-r--r--src/tui/ui.rs2
3 files changed, 3 insertions, 5 deletions
diff --git a/src/app.rs b/src/app.rs
index 1a9b9c6..3268649 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -140,8 +140,6 @@ impl App {
}
CurrentArea::PopupArea => {
if let Some(PopupKind::Help) = self.bibiman.popup_area.popup_kind {
- // self.bibiman.popup_area.popup_scroll_pos =
- // self.bibiman.popup_area.popup_scroll_pos + 1
self.bibiman.popup_area.popup_scroll_down();
}
}
@@ -157,8 +155,6 @@ impl App {
}
CurrentArea::PopupArea => {
if let Some(PopupKind::Help) = self.bibiman.popup_area.popup_kind {
- // self.bibiman.popup_area.popup_scroll_pos =
- // self.bibiman.popup_area.popup_scroll_pos - 1
self.bibiman.popup_area.popup_scroll_up();
}
}
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 {