aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/input/handler.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-23 16:42:54 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-23 16:42:54 +0000
commit9bc7a268ce18b8e1f8d60f476903a6832f946de6 (patch)
treed7c81b6af7b79dfb62951ab494a4b2de70d9234d /src/common/input/handler.rs
parentRename references of 'draw' to 'render' for plugins (diff)
parentPerformance: only render panes that should be updated (#234) (diff)
downloadsl0ppij-9bc7a268ce18b8e1f8d60f476903a6832f946de6.tar.gz
sl0ppij-9bc7a268ce18b8e1f8d60f476903a6832f946de6.tar.xz
sl0ppij-9bc7a268ce18b8e1f8d60f476903a6832f946de6.zip
Merge changes from main
Diffstat (limited to 'src/common/input/handler.rs')
-rw-r--r--src/common/input/handler.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs
index ed247830..29a504f5 100644
--- a/src/common/input/handler.rs
+++ b/src/common/input/handler.rs
@@ -271,12 +271,7 @@ impl InputHandler {
pub fn get_help(mode: InputMode) -> Help {
let mut keybinds: Vec<(String, String)> = vec![];
match mode {
- InputMode::Normal | InputMode::Command => {
- keybinds.push(("p".to_string(), "PANE".to_string()));
- keybinds.push(("t".to_string(), "TAB".to_string()));
- keybinds.push(("r".to_string(), "RESIZE".to_string()));
- keybinds.push(("s".to_string(), "SCROLL".to_string()));
- }
+ InputMode::Normal | InputMode::Locked => {}
InputMode::Resize => {
keybinds.push(("←↓↑→".to_string(), "Resize".to_string()));
}
@@ -284,8 +279,8 @@ pub fn get_help(mode: InputMode) -> Help {
keybinds.push(("←↓↑→".to_string(), "Move focus".to_string()));
keybinds.push(("p".to_string(), "Next".to_string()));
keybinds.push(("n".to_string(), "New".to_string()));
- keybinds.push(("d".to_string(), "Split down".to_string()));
- keybinds.push(("r".to_string(), "Split right".to_string()));
+ keybinds.push(("d".to_string(), "Down split".to_string()));
+ keybinds.push(("r".to_string(), "Right split".to_string()));
keybinds.push(("x".to_string(), "Close".to_string()));
keybinds.push(("f".to_string(), "Fullscreen".to_string()));
}
@@ -302,8 +297,6 @@ pub fn get_help(mode: InputMode) -> Help {
keybinds.push(("Enter".to_string(), "when done".to_string()));
}
}
- keybinds.push(("ESC".to_string(), "BACK".to_string()));
- keybinds.push(("q".to_string(), "QUIT".to_string()));
Help { mode, keybinds }
}