diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/tui/ui.rs | 9 |
1 files changed, 9 insertions, 0 deletions
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