Skip to content

Commit

Permalink
Display just session name with tab names
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicHorrorDev committed Jul 9, 2021
1 parent eb6e49c commit b25842a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions default-plugins/tab-bar/src/line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,8 @@ fn add_next_tabs_msg(
}

fn tab_line_prefix(session_name: Option<&str>, palette: Palette) -> LinePart {
let mut prefix_text = " Zellij ".to_string();
if let Some(name) = session_name {
prefix_text.push_str(&format!("({}) ", name));
}
let session_name = session_name.unwrap_or("Zellij");
let prefix_text = format!(" {} ", session_name);

let prefix_text_len = prefix_text.chars().count();
let prefix_styled_text = style!(palette.white, palette.cyan)
Expand Down

0 comments on commit b25842a

Please sign in to comment.