summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2018-12-25 17:47:33 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2018-12-25 17:47:33 -0500
commit8fea224ba862704321b8410e4ac56581df26d507 (patch)
treec45efa88897d818bde9e01d5707989ebc7958977 /src/main.rs
parent8ed6766ef180f2b815be54acf8073edc693224fd (diff)
switch to .conf file for keymapping for better customization in the future
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index bcd779c..8e665d0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,10 +10,10 @@ use std::env;
mod joshuto;
-pub const PROGRAM_NAME: &str = "joshuto";
-pub const CONFIG_FILE: &str = "joshuto.toml";
-pub const KEYMAP_FILE: &str = "keymap.toml";
-pub const MIMETYPE_FILE: &str = "mimetype.toml";
+const PROGRAM_NAME: &str = "joshuto";
+const CONFIG_FILE: &str = "joshuto.toml";
+const MIMETYPE_FILE: &str = "mimetype.toml";
+const KEYMAP_FILE: &str = "keymap.conf";
fn main()
{
@@ -26,8 +26,9 @@ fn main()
}
let config = joshuto::config::JoshutoConfig::get_config();
- let keymap = joshuto::keymap::JoshutoKeymap::get_config();
let mimetype = joshuto::mimetype::JoshutoMimetype::get_config();
+ let keymap = joshuto::keymap::JoshutoKeymap::get_config();
+// println!("{:#?}", keymap);
joshuto::run(config, keymap, mimetype);
}