diff options
| author | lukeflo | 2025-06-29 12:26:27 +0200 |
|---|---|---|
| committer | lukeflo | 2025-06-29 12:26:27 +0200 |
| commit | fdfbf550144ef69ecc6003760fbb39466ec08637 (patch) | |
| tree | c13a111fdfd18b1f078adb867ae69d1ab0de2ea4 /src/config.rs | |
| parent | 2e4ae7a05a73cb1df63343e14fbb8a5fd3c7bf41 (diff) | |
| download | bibiman-fdfbf550144ef69ecc6003760fbb39466ec08637.tar.gz bibiman-fdfbf550144ef69ecc6003760fbb39466ec08637.zip | |
Some basic function rewriting for matching different file types
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index f5f2dd0..6abcfd1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -56,6 +56,12 @@ const DEFAULT_CONFIG: &str = r##" ## Use absolute paths (~ for HOME works). Otherwise, loading might not work. # pdf_path = "/path/to/pdf/folder" +## Path to folder (with subfolders) containing note files with the basename of +## the format "citekey.extension". Other basenames are not accepted. The possible +## extensions can be set through the "note_extensions" array. +# note_path = "/path/to/notes/folder" +# note_extensions = [ "md", "txt", "org" ] + # [colors] ## Default values for dark-themed terminal ## Possible values are: @@ -90,6 +96,8 @@ pub struct General { pub url_opener: String, pub file_prefix: Option<PathBuf>, pub pdf_path: Option<PathBuf>, + pub note_path: Option<PathBuf>, + pub note_extensions: Option<Vec<String>>, } /// Substruct [colors] in config.toml @@ -117,6 +125,8 @@ impl Default for BibiConfig { url_opener: select_opener(), file_prefix: None, pdf_path: None, + note_path: None, + note_extensions: None, }, colors: Self::dark_colors(), } @@ -133,6 +143,8 @@ impl BibiConfig { url_opener: select_opener(), file_prefix: None, pdf_path: None, + note_path: None, + note_extensions: None, }, colors: if args.light_theme { Self::light_colors() |
