diff options
author | Lovecraftian Horror <LovecraftianHorror@pm.me> | 2021-07-20 13:14:13 -0400 |
---|---|---|
committer | Lovecraftian Horror <LovecraftianHorror@pm.me> | 2021-07-20 13:14:13 -0400 |
commit | c5a25f267fdc42ff66a5de6f75720150985b0dce (patch) | |
tree | 0a6bab35187891f5a61c11acfd54ffea340af6ec /default-plugins/tab-bar | |
parent | b25842a563215bada9844367011fe147407c73d8 (diff) |
Revert "Display just session name with tab names"
This reverts commit b25842a563215bada9844367011fe147407c73d8.
Diffstat (limited to 'default-plugins/tab-bar')
-rw-r--r-- | default-plugins/tab-bar/src/line.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/default-plugins/tab-bar/src/line.rs b/default-plugins/tab-bar/src/line.rs index fbd9cba06..3ebeaac31 100644 --- a/default-plugins/tab-bar/src/line.rs +++ b/default-plugins/tab-bar/src/line.rs @@ -145,8 +145,10 @@ fn add_next_tabs_msg( } fn tab_line_prefix(session_name: Option<&str>, palette: Palette) -> LinePart { - let session_name = session_name.unwrap_or("Zellij"); - let prefix_text = format!(" {} ", session_name); + let mut prefix_text = " Zellij ".to_string(); + if let Some(name) = session_name { + prefix_text.push_str(&format!("({}) ", name)); + } let prefix_text_len = prefix_text.chars().count(); let prefix_styled_text = style!(palette.white, palette.cyan) |