diff options
| author | lukeflo | 2025-08-24 22:51:01 +0200 |
|---|---|---|
| committer | lukeflo | 2025-08-24 22:51:01 +0200 |
| commit | f090e1310cd6c74919273491d75b4b6c52e3dffc (patch) | |
| tree | ba8a240b717331de303d7b073a21c6403bb78d99 | |
| parent | 5039137ef532b88f3e179e3bcf7aa888de0c2a0f (diff) | |
| download | bibiman-f090e1310cd6c74919273491d75b4b6c52e3dffc.tar.gz bibiman-f090e1310cd6c74919273491d75b4b6c52e3dffc.zip | |
concat values for custom fields; fix UI bug for entry with notes only
| -rw-r--r-- | src/bibiman/bibisetup.rs | 8 | ||||
| -rw-r--r-- | src/tui/ui.rs | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/bibiman/bibisetup.rs b/src/bibiman/bibisetup.rs index ed189ce..3bcb717 100644 --- a/src/bibiman/bibisetup.rs +++ b/src/bibiman/bibisetup.rs @@ -430,7 +430,7 @@ impl BibiSetup { .iter() .map(|i| i.get(0).unwrap().v.get().to_string()) .collect(); - values.join("; ") + values.concat() } else { "empty".to_string() } @@ -441,7 +441,7 @@ impl BibiSetup { .into_iter() .map(|i| i.v.get().to_owned()) .collect::<Vec<_>>(); - values.join("; ") + values.concat() } else { "empty".to_string() } @@ -452,7 +452,7 @@ impl BibiSetup { .into_iter() .map(|i| i.v.get().to_owned()) .collect::<Vec<_>>(); - values.join("; ") + values.concat() } else { "empty".to_string() } @@ -463,7 +463,7 @@ impl BibiSetup { .iter() .map(|i| i.get(0).unwrap().v.get().to_string()) .collect(); - values.join("; ") + values.concat() } else { "empty".to_string() } diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 2180838..3e6e24c 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -964,7 +964,10 @@ pub fn render_selected_item(app: &mut App, cfg: &BibiConfig, frame: &mut Frame, } lines.push(Line::from(content)) } - if cur_entry.doi_url.is_some() || cur_entry.filepath.is_some() { + if cur_entry.doi_url.is_some() + || cur_entry.filepath.is_some() + || cur_entry.notes.is_some() + { lines.push(Line::raw("")); } if cur_entry.doi_url.is_some() { |
