diff options
| author | lukeflo | 2025-10-07 15:05:47 +0200 |
|---|---|---|
| committer | lukeflo | 2025-10-07 15:05:47 +0200 |
| commit | 67afd67d4d51a00079269d431a7058fc50750886 (patch) | |
| tree | d8d259a74fcc52b0272f004fa39a4be95cdb7d6b /src/bibiman.rs | |
| parent | 34170cfa62df5443a0d8675106c553efec035687 (diff) | |
| download | bibiman-67afd67d4d51a00079269d431a7058fc50750886.tar.gz bibiman-67afd67d4d51a00079269d431a7058fc50750886.zip | |
implement basic citekey formatting:
* Reads patterns and parses them.
TODO:
* **Fully** sanitize Latex macros
* Preprocess complex and regularly used fields like `author`
* Write changes to original bib file
Diffstat (limited to 'src/bibiman.rs')
| -rw-r--r-- | src/bibiman.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bibiman.rs b/src/bibiman.rs index c423ce1..3158d73 100644 --- a/src/bibiman.rs +++ b/src/bibiman.rs @@ -40,6 +40,7 @@ use std::result::Result::Ok; use tui_input::Input; pub mod bibisetup; +pub mod citekeys; pub mod entries; pub mod keywords; pub mod search; @@ -88,13 +89,14 @@ pub struct Bibiman { } impl Bibiman { - // Constructs a new instance of [`App`]. + /// Constructs a new instance of [`Bibiman`]. pub fn new(args: &mut CLIArgs, cfg: &mut BibiConfig) -> Result<Self> { let mut main_bibfiles: Vec<PathBuf> = args.pos_args.clone(); if cfg.general.bibfiles.is_some() { main_bibfiles.append(cfg.general.bibfiles.as_mut().unwrap()) }; let main_bibfiles = cliargs::parse_files(main_bibfiles); + // TODO: insert workflow for formatting citekeys let main_biblio = BibiSetup::new(&main_bibfiles, cfg); let tag_list = TagList::new(main_biblio.keyword_list.clone()); let search_struct = BibiSearch::default(); |
