aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlukeflo2025-06-30 15:50:10 +0200
committerlukeflo2025-06-30 15:50:10 +0200
commit8ea28b55f0c6ba210ddcd6a964c8f56d3e6e25ff (patch)
treecc1bdbca85977160e6c9b78cdc93c58a5e23ecfc /src
parent614a20a12138f6691f8472b8c8657cf62b6730fb (diff)
downloadbibiman-8ea28b55f0c6ba210ddcd6a964c8f56d3e6e25ff.tar.gz
bibiman-8ea28b55f0c6ba210ddcd6a964c8f56d3e6e25ff.zip
show notes in file info
Diffstat (limited to 'src')
-rw-r--r--src/tui/ui.rs9
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![
// Span::styled("File: ", style_value),