aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-25 14:30:31 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-25 14:30:31 +0000
commit0ea8ce497d899e1a9faa241cfeaedcaa35f8e3f0 (patch)
tree2c0f056ef7110fddfa183d568d8497f4dd1c0a8f /src
parentMerge in changes from main and fix clippy lints (diff)
downloadsl0ppij-0ea8ce497d899e1a9faa241cfeaedcaa35f8e3f0.tar.gz
sl0ppij-0ea8ce497d899e1a9faa241cfeaedcaa35f8e3f0.tar.xz
sl0ppij-0ea8ce497d899e1a9faa241cfeaedcaa35f8e3f0.zip
Rename Help to ModeInfo
Diffstat (limited to 'src')
-rw-r--r--src/common/input/handler.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs
index f48ec7c9..857ebb5a 100644
--- a/src/common/input/handler.rs
+++ b/src/common/input/handler.rs
@@ -11,7 +11,7 @@ use crate::wasm_vm::{NaughtyEventType, PluginInputType, PluginInstruction};
use crate::CommandIsExecuting;
use termion::input::{TermRead, TermReadEventsAndRaw};
-use zellij_tile::data::{Help, InputMode, Key};
+use zellij_tile::data::{InputMode, Key, ModeInfo};
use super::keybinds::key_to_actions;
@@ -273,7 +273,7 @@ impl InputHandler {
/// Creates a [`Help`] struct indicating the current [`InputMode`] and its keybinds
/// (as pairs of [`String`]s).
// TODO this should probably be automatically generated in some way
-pub fn get_help(mode: InputMode) -> Help {
+pub fn get_help(mode: InputMode) -> ModeInfo {
let mut keybinds: Vec<(String, String)> = vec![];
match mode {
InputMode::Normal | InputMode::Locked => {}
@@ -302,7 +302,7 @@ pub fn get_help(mode: InputMode) -> Help {
keybinds.push(("Enter".to_string(), "when done".to_string()));
}
}
- Help { mode, keybinds }
+ ModeInfo { mode, keybinds }
}
/// Entry point to the module. Instantiates an [`InputHandler`] and starts