diff --git a/Cargo.toml b/Cargo.toml index 69d5081..4ed9b7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ path = "src/main.rs" [dependencies] pico-args = { version = "0.5.0", features = [ "combined-flags", "eq-separator" ] } -termion = "2.0.1" +termion = "3.0.0" tmux_interface = "0.3.2" [profile.release] diff --git a/src/command/share.rs b/src/command/share.rs index 9d1d927..d4f47f8 100644 --- a/src/command/share.rs +++ b/src/command/share.rs @@ -131,7 +131,7 @@ pub fn list() { // pretty print session list println!("sessions:"); for session in sessions.into_iter() { - let group = session.group.unwrap_or("[untitled]".to_string()); + let group = session.name.unwrap_or("[untitled]".to_string()); let id = session.id.unwrap(); let attached = session.attached.unwrap_or(0) > 0; @@ -174,7 +174,7 @@ pub fn new(pargs: &mut Arguments) { } let mut new = commands::NewSession::new(); - new = new.group_name(title); + new = new.session_name(title); if let Some(command) = command { new.shell_command = Some(command.to_string_lossy()); } if detached { new.detached = true; } if let Ok(target_dir) = target_dir { new = new.start_directory(target_dir); }