added nest flag to help text and README

This commit is contained in:
Valerie Wolfe 2024-02-13 17:16:22 -05:00
parent 29a51da6bb
commit 4b1ea9332f
3 changed files with 9 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "remux" name = "remux"
version = "0.1.3a" version = "0.1.3b"
edition = "2021" edition = "2021"
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ] authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
description = "A friendly command shortener for tmux" description = "A friendly command shortener for tmux"

View file

@ -33,6 +33,12 @@ remux has foo
tmux detach-client -t foo tmux detach-client -t foo
remux d 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 ## Libraries

View file

@ -40,6 +40,7 @@ pub fn help(pargs: &mut Arguments) {
println!("flags:"); println!("flags:");
println!(" -d, --detach Detach other attached clients from the session"); 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"); 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!(" [command] The shell command to run\n");
println!("flags:"); println!("flags:");
println!(" -n, --nest Create the session inside another session.");
println!(" -t, --target <dir> Sets the target directory for the new session."); println!(" -t, --target <dir> Sets the target directory for the new session.");
}, },