mirror of
https://github.com/rust-kotlin/ashell.git
synced 2026-10-07 00:00:32 +00:00
style: Simplify terminal title bar and remove redundant path display
This commit is contained in:
@@ -991,11 +991,16 @@ impl Ashell {
|
||||
.text_color(cx.theme().muted_foreground)
|
||||
.child({
|
||||
if let Some(kind) = self.active_kind() {
|
||||
let kind_str = match kind {
|
||||
match kind {
|
||||
TabKind::Local => t!("local_terminal").to_string(),
|
||||
TabKind::Ssh => "ssh".to_string(),
|
||||
};
|
||||
format!("{} / {}", kind_str, self.active_title())
|
||||
TabKind::Ssh => {
|
||||
if let Some((_, session)) = self.active_ssh_session() {
|
||||
format!("ssh / {}", session.name)
|
||||
} else {
|
||||
"ssh".to_string()
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
self.active_title()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user