diff options
Diffstat (limited to 'src/tui/ui.rs')
| -rw-r--r-- | src/tui/ui.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 7a121bf..ebebe4c 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -299,9 +299,17 @@ pub fn render_popup(app: &mut App, cfg: &BibiConfig, frame: &mut Frame) { " Select " }; + let bottom_info = if let Some(PopupKind::OpenRes) = app.bibiman.popup_area.popup_kind { + " (j,k|↓,↑) ━ (o,l) ━ (ENTER) ━ (ESC) ".bold() + } else if let Some(PopupKind::YankItem) = app.bibiman.popup_area.popup_kind { + " (j,k|↓,↑) ━ (y) ━ (ENTER) ━ (ESC) ".bold() + } else { + " (j,k|↓,↑) ━ (ENTER) ━ (ESC) ".bold() + }; + let block = Block::bordered() .title_top(title.bold()) - .title_bottom(" (j,k|↓,↑) ━ (ENTER) ━ (ESC) ".bold()) + .title_bottom(bottom_info) .title_alignment(Alignment::Center) .style( Style::new() |
