From 0232a9c650a2fa71d7c84f6d2487206385969580 Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 24 Jun 2024 17:17:40 -0400 Subject: [PATCH] updated README and help text --- Cargo.toml | 2 +- README.md | 3 +-- src/help.rs | 11 +++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b89a690..e00c7f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "remux" -version = "0.3.2" +version = "0.3.3" edition = "2021" authors = [ "Valerie Wolfe " ] description = "A friendly command shortener for tmux" diff --git a/README.md b/README.md index eb4bf2a..39e563f 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,7 @@ tmux swi -t foo rmux s foo # cd to session path -tmux run 'printf "#{session_path}" > /tmp/tmux_path' -cd `cat /tmp/tmux_path` +cd `tmux display-mes -p "#{session_path}"` cd `rmux p` ``` diff --git a/src/help.rs b/src/help.rs index fb4ae54..d9baa88 100644 --- a/src/help.rs +++ b/src/help.rs @@ -25,6 +25,7 @@ commands: path print session path (session) switch switch to another session (session) + which print session title (session) Use 'remux help ' to see detailed help text for each command. @@ -126,6 +127,16 @@ flags: -r, --read-only Attach the target session as read-only."), + Some("w" | "which" | "title") + => +println!("remux which +Print the title of the current session. + +usage: remux which + remux w + remux title"), + + // TOPIC HELP Some("env" | "vars")