diff options
| author | lukeflo | 2025-10-08 14:39:46 +0200 |
|---|---|---|
| committer | lukeflo | 2025-10-08 14:39:46 +0200 |
| commit | 8b858f92da69cfb8fa43ec861cda46eeb6ef4bbe (patch) | |
| tree | 920001c7455e1e2e2ce41324fdaddb1fe5aed920 /src/config.rs | |
| parent | a07359a9a1da0c06c040f77158be31b3883b33ac (diff) | |
| download | bibiman-8b858f92da69cfb8fa43ec861cda46eeb6ef4bbe.tar.gz bibiman-8b858f92da69cfb8fa43ec861cda46eeb6ef4bbe.zip | |
case parsing from config, needs to be implemented for citekey struct
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs index 8a333e4..a5df61c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -149,7 +149,7 @@ pub struct Colors { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] pub struct CitekeyFormatter { - pub fields: Vec<String>, + pub fields: Option<Vec<String>>, pub case: Option<CitekeyCase>, } @@ -172,7 +172,7 @@ impl Default for BibiConfig { }, colors: Self::dark_colors(), citekey_formatter: CitekeyFormatter { - fields: Vec::new(), + fields: None, case: None, }, } @@ -202,7 +202,7 @@ impl BibiConfig { Self::dark_colors() }, citekey_formatter: CitekeyFormatter { - fields: Vec::new(), + fields: None, case: None, }, } @@ -400,6 +400,8 @@ mod tests { author_color = "38" title_color = "37" year_color = "135" + + [citekey_formatter] "#, )?; |
