From ff1be6b6fe3042b74b5b2df9b867f0c195a5bd35 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Mon, 8 May 2023 16:11:41 -0500 Subject: feat: move path gen out of --tmux as --sessions --- src/config.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index d961f50..f8160af 100644 --- a/src/config.rs +++ b/src/config.rs @@ -15,9 +15,15 @@ pub struct Config { /// Add arbitrary directories /// /// Directories added by this flag are still filtered and sorted based on supplied options. - #[arg(long = "project", short = 'P')] + #[arg(short = 'P', long = "project")] pub projects: Vec, + /// Add any current tmux session's paths to output. + /// + /// Uses the tmux session's `session_path`. + #[arg(short = 'T', long = "sessions")] + pub tmux_sessions: bool, + #[command(flatten)] pub verbosity: Verbosity, } @@ -65,9 +71,11 @@ pub struct Projects { #[arg(long, short)] pub git: bool, - /// Add current tmux session directories. + /// Use existing tmux sessions for project timestamps /// - /// Uses last attached time as the timestamp. + /// Note: This only used for sorting projects using `session_last_attached` (or + /// `session_created` if not yet attached). For adding existing tmux session's paths to the + /// ouput, see `-T|--sessions`. #[arg(long, short)] pub tmux: bool, } -- cgit v1.2.3-70-g09d2