diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 24bc995..e969f1a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -77,6 +77,7 @@ pub struct Config { pub icons: bool, pub media_autoplay: bool, pub media_mute: bool, + pub media_previewer: String } @@ -95,7 +96,8 @@ impl Config { cd_cmd: "find -type d | fzf".to_string(), icons: false, media_autoplay: false, - media_mute: false + media_mute: false, + media_previewer: "hunter-media".to_string() } } @@ -128,6 +130,10 @@ impl Config { Ok(("media_autoplay", "off")) => { config.media_autoplay = false; }, Ok(("media_mute", "on")) => { config.media_mute = true; }, Ok(("media_mute", "off")) => { config.media_mute = false; }, + Ok(("media_previewer", cmd)) => { + let cmd = cmd.to_string(); + config.select_cmd = cmd; + } _ => { HError::config_error::<Config>(line.to_string()).log(); } } config |