From 8ea28b55f0c6ba210ddcd6a964c8f56d3e6e25ff Mon Sep 17 00:00:00 2001 From: lukeflo Date: Mon, 30 Jun 2025 15:50:10 +0200 Subject: show notes in file info --- src/tui/ui.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/tui/ui.rs') diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 5904f88..ac44d09 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -908,6 +908,15 @@ pub fn render_selected_item(app: &mut App, cfg: &BibiConfig, frame: &mut Frame, ), ])); } + if let Some(n) = &cur_entry.notes { + lines.push(Line::from(vec![ + Span::styled("Note: ", style_value), + Span::styled( + n.iter().map(|n| n.to_str().unwrap()).join("; "), + Style::new().fg(cfg.colors.note_color), + ), + ])); + } // if cur_entry.filepath.is_some() { // lines.push(Line::from(vec![ // Span::styled("File: ", style_value), -- cgit v1.2.3