diff options
| author | denis <denismaximov98@gmail.com> | 2021-03-20 16:54:18 +0200 |
|---|---|---|
| committer | denis <denismaximov98@gmail.com> | 2021-03-20 16:54:18 +0200 |
| commit | 021c8608c8d8a0cd43328d9c0bede5259bd14261 (patch) | |
| tree | e51b4ac728b573c01e71905815097a03ecfda7e0 /src/common/mod.rs | |
| parent | wip: active pane color, able to type / not able to type inside a pane distinc... (diff) | |
| download | sl0ppij-021c8608c8d8a0cd43328d9c0bede5259bd14261.tar.gz sl0ppij-021c8608c8d8a0cd43328d9c0bede5259bd14261.tar.xz sl0ppij-021c8608c8d8a0cd43328d9c0bede5259bd14261.zip | |
wip: not sure about updating the input_mode and tab switches for now
Diffstat (limited to 'src/common/mod.rs')
| -rw-r--r-- | src/common/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs index 7b19bcef..87f56567 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -37,6 +37,7 @@ use utils::consts::{ZELLIJ_IPC_PIPE, ZELLIJ_ROOT_PLUGIN_DIR}; use wasm_vm::{ wasi_stdout, wasi_write_string, zellij_imports, EventType, PluginInputType, PluginInstruction, }; +use crate::common::utils::logging::debug_log_to_file; #[derive(Serialize, Deserialize, Debug)] pub enum ApiCommand { @@ -290,6 +291,7 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) { &full_screen_ws, os_input, max_panes, + InputMode::Normal ); loop { let (event, mut err_ctx) = screen @@ -424,6 +426,10 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) { ScreenInstruction::UpdateTabName(c) => { screen.update_active_tab_name(c); } + ScreenInstruction::ChangeInputMode(input_mode) => { + debug_log_to_file(format!("{} {:?}", "switched mode to: ".to_string(), input_mode)); + screen.change_input_mode(input_mode); + } ScreenInstruction::Quit => { break; } |
