summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-31 16:13:54 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-05-31 16:13:54 -0400
commit3cba2ba36e826985c160e58faf556a6b2d17fbcb (patch)
treec6d95dbc3021b027326def5aae90aeea747ee071 /src/main.rs
parent6f1271f457d3201b269f99bc3c6571280f0f99e1 (diff)
add support for specifying certain keycodes for certain keyboard actions
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 0fce913..5d6435f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -18,7 +18,7 @@ use std::path::PathBuf;
use structopt::StructOpt;
use config::{
- ConfigStructure, JoshutoConfig, JoshutoKeymap, JoshutoMimetype, JoshutoPreview, JoshutoTheme,
+ ConfigStructure, JoshutoConfig, JoshutoCommandMapping, JoshutoKeyMapping, JoshutoMimetype, JoshutoPreview, JoshutoTheme,
};
use run::run;
@@ -46,8 +46,9 @@ lazy_static! {
static ref THEME_T: JoshutoTheme = JoshutoTheme::get_config();
static ref MIMETYPE_T: JoshutoMimetype = JoshutoMimetype::get_config();
static ref PREVIEW_T: JoshutoPreview = JoshutoPreview::get_config();
- static ref HOME_DIR: Option<PathBuf> = dirs::home_dir();
+ static ref KEYMAP_T: JoshutoKeyMapping = JoshutoKeyMapping::get_config();
+ static ref HOME_DIR: Option<PathBuf> = dirs::home_dir();
static ref USERNAME: String = whoami::username();
static ref HOSTNAME: String = whoami::hostname();
}
@@ -62,7 +63,7 @@ fn main() {
let args = Args::from_args();
let config = JoshutoConfig::get_config();
- let keymap = JoshutoKeymap::get_config();
+ let keymap = JoshutoCommandMapping::get_config();
if args.debug {
eprintln!("config: {:#?}", config);