aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorlukeflo2025-02-27 17:45:40 +0100
committerlukeflo2025-02-27 17:45:40 +0100
commitc52dc7ed6951af2d74804d1275e577205960b235 (patch)
tree3dc8acd0bd0e0a83922c2927cc5e00c35837ba5c /src/config.rs
parent5da77a2f812a0bb6e0057f7b2e2c642142fca125 (diff)
downloadbibiman-c52dc7ed6951af2d74804d1275e577205960b235.tar.gz
bibiman-c52dc7ed6951af2d74804d1275e577205960b235.zip
add `file_prefix` option to config and opening function
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 956b724..f1ac3ca 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -41,6 +41,7 @@ pub struct General {
pub editor: Option<String>,
pub pdf_opener: String,
pub url_opener: String,
+ pub file_prefix: Option<PathBuf>,
}
/// Substruct [colors] in config.toml
@@ -66,6 +67,7 @@ impl Default for BibiConfig {
editor: None,
pdf_opener: select_opener(),
url_opener: select_opener(),
+ file_prefix: None,
},
colors: Colors {
main_text_color: Color::Indexed(250),