summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/input/layout.rs
diff options
context:
space:
mode:
authorTw <tw19881113@gmail.com>2021-09-13 17:56:33 +0800
committerGitHub <noreply@github.com>2021-09-13 11:56:33 +0200
commitda2a9b5c18eeff329d635004644664dadf3634bb (patch)
treefe4bf515712ecd7568e5b3a8af7dc5d8b8e069b0 /zellij-utils/src/input/layout.rs
parent7c959ee3a2ccf81fd8977eae5d3cf1fcda9c6dda (diff)
feat(screen): support specifying tab's name in layout (#715)
Signed-off-by: Tw <tw19881113@gmail.com>
Diffstat (limited to 'zellij-utils/src/input/layout.rs')
-rw-r--r--zellij-utils/src/input/layout.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs
index 5d4b34926..7d1024514 100644
--- a/zellij-utils/src/input/layout.rs
+++ b/zellij-utils/src/input/layout.rs
@@ -224,6 +224,8 @@ pub struct TabLayout {
pub parts: Vec<TabLayout>,
pub split_size: Option<SplitSize>,
pub run: Option<Run>,
+ #[serde(default)]
+ pub name: String,
}
impl Layout {
@@ -427,6 +429,7 @@ impl Default for TabLayout {
parts: vec![],
split_size: None,
run: None,
+ name: String::new(),
}
}
}