From 46db9f99ffd5da0f7606c10138845739d7a0209e Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Tue, 28 Jan 2025 00:10:18 +0100 Subject: [PATCH] bin(patch): Remap `select` to `list` for calls to `rad` --- bin/commands/patch.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/commands/patch.rs b/bin/commands/patch.rs index 170f2996..60b25350 100644 --- a/bin/commands/patch.rs +++ b/bin/commands/patch.rs @@ -279,7 +279,12 @@ pub async fn run(options: Options, ctx: impl terminal::Context) -> anyhow::Resul // Run TUI with patch review interface interface::review(opts.clone(), profile, rid, patch_id).await?; } - Operation::Other { args } => { + Operation::Other { mut args } => { + if let Some(arg) = args.first() { + if arg.to_string_lossy().as_ref() == "select" { + args = [vec!["list".into()], args[1..].to_vec()].concat(); + } + } let _ = crate::terminal::run_rad("patch", &args); } }