From 10974c822d607f03e20e9741ec027910f0c1f93a Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sat, 8 Aug 2026 16:26:47 +0300 Subject: feat(input): add per-pane right-click routing (#2504) --- src/cli/spec.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/cli/spec.rs') diff --git a/src/cli/spec.rs b/src/cli/spec.rs index 3be83328..a1efdac4 100644 --- a/src/cli/spec.rs +++ b/src/cli/spec.rs @@ -524,6 +524,17 @@ fn pane_command() -> Command { .arg(Arg::new("label").value_name("LABEL").num_args(1..)) .arg(flag("clear")), ) + .subcommand( + Command::new("input") + .about("Set pane input routing") + .arg(Arg::new("pane_id").value_name("PANE_ID")) + .args(current_pane_args()) + .arg( + option("right-click", "TARGET") + .value_parser(["herdr", "pane"]) + .required(true), + ), + ) .subcommand( Command::new("split") .about("Split a pane") @@ -533,6 +544,7 @@ fn pane_command() -> Command { .arg(option("ratio", "FLOAT")) .arg(path_option("cwd", "PATH")) .arg(env_option()) + .arg(option("right-click", "TARGET").value_parser(["herdr", "pane"])) .arg(flag("focus")) .arg(flag("no-focus")), ) -- cgit v1.2.3