tmux: Kill dead pane with Escape too

This commit is contained in:
2025-09-03 10:07:53 +02:00
parent a49cbcae21
commit fced504674

View File

@@ -361,10 +361,12 @@ bind S set -w synchronize-panes
set -g remain-on-exit on
if -F "#{>=:#{version},3.3}" {
bind -n C-d if -F "#{pane_dead}" { kill-pane } { send }
bind -n Escape if -F "#{pane_dead}" { kill-pane } { send }
bind -n Enter if -F "#{pane_dead}" { respawn-pane } { send }
} {
# omitting the key argument was introduced in 3.3
bind -n C-d if -F "#{pane_dead}" { kill-pane } { send C-d }
bind -n Escape if -F "#{pane_dead}" { kill-pane } { send Escape }
bind -n Enter if -F "#{pane_dead}" { respawn-pane } { send Enter }
}