summaryrefslogtreecommitdiffstats
path: root/zellij-tile/src
diff options
context:
space:
mode:
authorKunal Mohan <44079328+kunalmohan@users.noreply.github.com>2021-12-09 23:30:40 +0530
committerGitHub <noreply@github.com>2021-12-09 23:30:40 +0530
commitc75bcbd9370249f23031edcd69f6724805c1e034 (patch)
treea45dab48eb4a0eea8f008db2278ea68c8166b044 /zellij-tile/src
parent368c852e57f3aa0596ef0459d6e9cc41b314cf65 (diff)
Feature: Add pane names (#928)
* Read pane name from layout * Update pane name at runtime * Fix tests * prefer and render pane name over pane title * fix clippy errors * fix after rebase
Diffstat (limited to 'zellij-tile/src')
-rw-r--r--zellij-tile/src/data.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/zellij-tile/src/data.rs b/zellij-tile/src/data.rs
index e43049a54..3e269af3b 100644
--- a/zellij-tile/src/data.rs
+++ b/zellij-tile/src/data.rs
@@ -77,8 +77,12 @@ pub enum InputMode {
/// `Scroll` mode allows scrolling up and down within a pane.
#[serde(alias = "scroll")]
Scroll,
+ /// `RenameTab` mode allows assigning a new name to a tab.
#[serde(alias = "renametab")]
RenameTab,
+ /// `RenamePane` mode allows assigning a new name to a pane.
+ #[serde(alias = "renamepane")]
+ RenamePane,
/// `Session` mode allows detaching sessions
#[serde(alias = "session")]
Session,
@@ -133,6 +137,7 @@ impl FromStr for InputMode {
"session" => Ok(InputMode::Session),
"move" => Ok(InputMode::Move),
"prompt" => Ok(InputMode::Prompt),
+ "renamepane" => Ok(InputMode::RenamePane),
e => Err(e.to_string().into()),
}
}