summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2018-07-28 09:21:49 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2018-07-28 09:21:49 -0400
commit8b2add26973685f336197f5036383a5c85e84545 (patch)
tree0019012e2d9758e61e91b1ec07e46f1dff591fb7 /src/main.rs
parent4f477a47f98834b1ffe3f17f9ba1b9602d742325 (diff)
add support for program argument list when executing programs
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 59d2f54..3bd189d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,6 +5,7 @@ extern crate ncurses;
extern crate toml;
extern crate xdg;
+use std::collections::BTreeMap;
use std::env;
use std::fs;
@@ -28,7 +29,7 @@ pub struct JoshutoConfig {
color_scheme: Option<String>,
sort_method: Option<String>,
// keymaps: Option<JoshutoKeymaps>,
- mimetypes: Option<toml::value::Table>,
+ mimetypes: Option<BTreeMap<String, Vec<String>>>,
}
#[derive(Debug, Deserialize)]