From 4b1ea9332f95c9eb75e4d76416d3f314dd63513d Mon Sep 17 00:00:00 2001 From: Valerie Date: Tue, 13 Feb 2024 17:16:22 -0500 Subject: [PATCH] added nest flag to help text and README --- Cargo.toml | 2 +- README.md | 6 ++++++ src/help.rs | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fcebd46..4dd9bbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "remux" -version = "0.1.3a" +version = "0.1.3b" edition = "2021" authors = [ "Valerie Wolfe " ] description = "A friendly command shortener for tmux" diff --git a/README.md b/README.md index 6a19ae8..d63ac19 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,12 @@ remux has foo tmux detach-client -t foo remux d foo +# nesting sessions with '-n' flag +TMUX='' tmux a -t foo +remux a -n foo +TMUX='' tmux new-session -t foo +remux n -n foo + ``` ## Libraries diff --git a/src/help.rs b/src/help.rs index cce27ef..bf9c5d2 100644 --- a/src/help.rs +++ b/src/help.rs @@ -40,6 +40,7 @@ pub fn help(pargs: &mut Arguments) { println!("flags:"); println!(" -d, --detach Detach other attached clients from the session"); + println!(" -n, --nest Attach the session inside another session."); println!(" -r, --readonly Attach the session as read-only"); }, @@ -88,6 +89,7 @@ pub fn help(pargs: &mut Arguments) { println!(" [command] The shell command to run\n"); println!("flags:"); + println!(" -n, --nest Create the session inside another session."); println!(" -t, --target Sets the target directory for the new session."); },