diff options
| author | lukeflo | 2025-06-30 15:50:10 +0200 |
|---|---|---|
| committer | lukeflo | 2025-06-30 15:50:10 +0200 |
| commit | 8ea28b55f0c6ba210ddcd6a964c8f56d3e6e25ff (patch) | |
| tree | cc1bdbca85977160e6c9b78cdc93c58a5e23ecfc | |
| parent | 614a20a12138f6691f8472b8c8657cf62b6730fb (diff) | |
| download | bibiman-8ea28b55f0c6ba210ddcd6a964c8f56d3e6e25ff.tar.gz bibiman-8ea28b55f0c6ba210ddcd6a964c8f56d3e6e25ff.zip | |
show notes in file info
| -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