diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-31 16:13:54 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-31 16:13:54 -0400 |
commit | 3cba2ba36e826985c160e58faf556a6b2d17fbcb (patch) | |
tree | c6d95dbc3021b027326def5aae90aeea747ee071 /src/run.rs | |
parent | 6f1271f457d3201b269f99bc3c6571280f0f99e1 (diff) |
add support for specifying certain keycodes for certain keyboard actions
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |