diff options
| author | lukeflo | 2025-02-17 20:55:46 +0100 |
|---|---|---|
| committer | lukeflo | 2025-02-17 20:55:46 +0100 |
| commit | d443843d352d740b895c4d622eb9af9567aa7423 (patch) | |
| tree | 5b61ec01b2d54461c423b97e2a702e7ec7daded9 /src/app.rs | |
| parent | 059591a1be6b887eaca9b114fdb5b350a65bae43 (diff) | |
| download | bibiman-d443843d352d740b895c4d622eb9af9567aa7423.tar.gz bibiman-d443843d352d740b895c4d622eb9af9567aa7423.zip | |
improve file handling
+ If config file **and** CLI args have different files/dirs, concat them and open all
+ Adapt UI to show which files are choosen
+ TODO: Flag for ignoring config file
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -16,6 +16,7 @@ ///// use crate::bibiman::{CurrentArea, FormerArea}; +use crate::config::BibiConfig; use color_eyre::eyre::{Context, Ok, Result}; // use super::Event; use crate::cliargs::CLIArgs; @@ -46,11 +47,11 @@ pub struct App { impl App { // Constructs a new instance of [`App`]. - pub fn new(args: &CLIArgs) -> Result<Self> { + pub fn new(args: &mut CLIArgs, cfg: &mut BibiConfig) -> Result<Self> { // Self::default() let running = true; let input = Input::default(); - let bibiman = Bibiman::new(args)?; + let bibiman = Bibiman::new(args, cfg)?; Ok(Self { running, bibiman, |
