diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-03-12 22:05:41 +0100 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-03-12 22:05:41 +0100 |
| commit | a86d8c216186030754a42968768f2af6a131d90d (patch) | |
| tree | 4e445340579663436ba6fb564a6b8403abd8fdb7 /src/common/input/handler.rs | |
| parent | Merge 'upstream/main' into config-file (diff) | |
| download | sl0ppij-a86d8c216186030754a42968768f2af6a131d90d.tar.gz sl0ppij-a86d8c216186030754a42968768f2af6a131d90d.tar.xz sl0ppij-a86d8c216186030754a42968768f2af6a131d90d.zip | |
Add example config file.
Diffstat (limited to 'src/common/input/handler.rs')
| -rw-r--r-- | src/common/input/handler.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs index 862cc0d2..dc9fa382 100644 --- a/src/common/input/handler.rs +++ b/src/common/input/handler.rs @@ -2,7 +2,7 @@ use super::actions::Action; use super::keybinds::Keybinds; -use crate::common::config::Config; +use crate::common::input::config::Config; use crate::common::{update_state, AppInstruction, AppState, SenderWithContext, OPENCALLS}; use crate::errors::ContextType; use crate::os_input_output::OsApi; @@ -273,18 +273,25 @@ impl InputHandler { pub enum InputMode { /// In `Normal` mode, input is always written to the terminal, except for the shortcuts leading /// to other modes + #[serde(alias = "normal")] Normal, /// In `Locked` mode, input is always written to the terminal and all shortcuts are disabled /// except the one leading back to normal mode + #[serde(alias = "locked")] Locked, /// `Resize` mode allows resizing the different existing panes. + #[serde(alias = "resize")] Resize, /// `Pane` mode allows creating and closing panes, as well as moving between them. + #[serde(alias = "pane")] Pane, /// `Tab` mode allows creating and closing tabs, as well as moving between them. + #[serde(alias = "tab")] Tab, /// `Scroll` mode allows scrolling up and down within a pane. + #[serde(alias = "scroll")] Scroll, + #[serde(alias = "renametab")] RenameTab, } |
