summaryrefslogtreecommitdiffstats
path: root/src/run.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/run.rs
parent6f1271f457d3201b269f99bc3c6571280f0f99e1 (diff)
add support for specifying certain keycodes for certain keyboard actions
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/run.rs b/src/run.rs
index 4d4053f..33f069a 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -2,7 +2,7 @@ use std::process;
use std::time;
use crate::commands::{CommandKeybind, FileOperationThread, JoshutoCommand, ReloadDirList};
-use crate::config::{self, JoshutoConfig, JoshutoKeymap};
+use crate::config::{self, JoshutoConfig, JoshutoCommandMapping};
use crate::context::JoshutoContext;
use crate::error::JoshutoError;
use crate::tab::JoshutoTab;
@@ -10,7 +10,7 @@ use crate::ui;
use crate::window::JoshutoPanel;
use crate::window::JoshutoView;
-fn recurse_get_keycommand(keymap: &JoshutoKeymap) -> Option<&Box<JoshutoCommand>> {
+fn recurse_get_keycommand(keymap: &JoshutoCommandMapping) -> Option<&Box<JoshutoCommand>> {
let (term_rows, term_cols) = ui::getmaxyx();
ncurses::timeout(-1);
@@ -136,7 +136,7 @@ fn init_context(context: &mut JoshutoContext, view: &JoshutoView) {
}
}
-pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoKeymap) {
+pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) {
ui::init_ncurses();
let mut context = JoshutoContext::new(config_t);