Add {current}/{active} for -t for current window or active pane, from

Manuel Einfalt in GitHub issue 4766.
This commit is contained in:
nicm
2025-12-22 08:35:04 +00:00
parent 74f60951cc
commit 188f963fe0
3 changed files with 19 additions and 0 deletions

View File

@@ -439,6 +439,7 @@ key_bindings_init(void)
/* Mouse button 1 down on pane. */
"bind -n MouseDown1Pane { select-pane -t=; send -M }",
"bind -n C-MouseDown1Pane { swap-pane -s@ }",
/* Mouse button 1 drag on pane. */
"bind -n MouseDrag1Pane { if -F '#{||:#{pane_in_mode},#{mouse_any_flag}}' { send -M } { copy-mode -M } }",
@@ -460,6 +461,7 @@ key_bindings_init(void)
/* Mouse button 1 down on status line. */
"bind -n MouseDown1Status { switch-client -t= }",
"bind -n C-MouseDown1Status { swap-window -t@ }",
/* Mouse wheel down on status line. */
"bind -n WheelDownStatus { next-window }",