summaryrefslogtreecommitdiffstats
path: root/zellij-tile/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-tile/src
parent8aef32863f8f21335679273c1a0b186a26482c78 (diff)
feat(ux): tmux mode (#1073)
* work * basic tmux move and functionality * tmux mode ui * rustfmt
Diffstat (limited to 'zellij-tile/src')
-rw-r--r--zellij-tile/src/data.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/zellij-tile/src/data.rs b/zellij-tile/src/data.rs
index 9b9f67b28..4ef8e493c 100644
--- a/zellij-tile/src/data.rs
+++ b/zellij-tile/src/data.rs
@@ -120,6 +120,9 @@ pub enum InputMode {
/// `Prompt` mode allows interacting with active prompts.
#[serde(alias = "prompt")]
Prompt,
+ /// `Tmux` mode allows for basic tmux keybindings functionality
+ #[serde(alias = "tmux")]
+ Tmux,
}
impl Default for InputMode {
@@ -164,6 +167,7 @@ impl FromStr for InputMode {
"renametab" => Ok(InputMode::RenameTab),
"session" => Ok(InputMode::Session),
"move" => Ok(InputMode::Move),
+ "tmux" => Ok(InputMode::Tmux),
"prompt" => Ok(InputMode::Prompt),
"renamepane" => Ok(InputMode::RenamePane),
e => Err(e.to_string().into()),