summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2022-02-21 15:52:42 +0100
committerGitHub <noreply@github.com>2022-02-21 15:52:42 +0100
commita0a0a7e5c4e6fccc755fb5199f7f3b853e7b3746 (patch)
tree8e10d430d12158f14b93272e5182f11231088c36 /zellij-utils/src
parent8aef32863f8f21335679273c1a0b186a26482c78 (diff)
feat(ux): tmux mode (#1073)
* work * basic tmux move and functionality * tmux mode ui * rustfmt
Diffstat (limited to 'zellij-utils/src')
-rw-r--r--zellij-utils/src/input/keybinds.rs4
-rw-r--r--zellij-utils/src/input/mod.rs10
2 files changed, 10 insertions, 4 deletions
diff --git a/zellij-utils/src/input/keybinds.rs b/zellij-utils/src/input/keybinds.rs
index 5e8ba033e..4838fdf64 100644
--- a/zellij-utils/src/input/keybinds.rs
+++ b/zellij-utils/src/input/keybinds.rs
@@ -199,10 +199,6 @@ impl Keybinds {
.0
.get(mode)
.unwrap_or({
- log::warn!(
- "The following mode has no action associated with it: {:?}",
- mode
- );
// create a dummy mode to recover from
&ModeKeybinds::new()
})
diff --git a/zellij-utils/src/input/mod.rs b/zellij-utils/src/input/mod.rs
index f8626e04a..391fea7b4 100644
--- a/zellij-utils/src/input/mod.rs
+++ b/zellij-utils/src/input/mod.rs
@@ -60,6 +60,16 @@ pub fn get_mode_info(
InputMode::RenameTab => vec![("Enter".to_string(), "when done".to_string())],
InputMode::RenamePane => vec![("Enter".to_string(), "when done".to_string())],
InputMode::Session => vec![("d".to_string(), "Detach".to_string())],
+ InputMode::Tmux => vec![
+ ("←↓↑→".to_string(), "Move focus".to_string()),
+ ("\"".to_string(), "Split Down".to_string()),
+ ("%".to_string(), "Split Right".to_string()),
+ ("z".to_string(), "Fullscreen".to_string()),
+ ("c".to_string(), "New Tab".to_string()),
+ (",".to_string(), "Rename Tab".to_string()),
+ ("p".to_string(), "Previous Tab".to_string()),
+ ("n".to_string(), "Next Tab".to_string()),
+ ],
};
let session_name = envs::get_session_name().ok();