diff --git a/key-bindings.c b/key-bindings.c index 9bc69045..16e77f52 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -467,6 +467,10 @@ key_bindings_init(void) "bind -n MouseDown1Status { switch-client -t= }", "bind -n C-MouseDown1Status { swap-window -t@ }", + /* Mouse button 1 down on default pane-border-format */ + "bind -n MouseDown1Control9 { display-menu -t= -xM -yM -O -T 'Kill pane #{pane_index}?' 'Yes' 'y' { kill-pane -t= } 'No' 'n' {}}", + "bind -n MouseDown1Control8 { resize-pane -Z }", + /* Mouse wheel down on status line. */ "bind -n WheelDownStatus { next-window }", diff --git a/options-table.c b/options-table.c index 6d1e6552..4f1b6d2d 100644 --- a/options-table.c +++ b/options-table.c @@ -1305,7 +1305,14 @@ const struct options_table_entry options_table[] = { .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE, .default_str = "#{?pane_active,#[reverse],}#{pane_index}#[default] " - "\"#{pane_title}\"", + "\"#{pane_title}\"" + "#{?#{mouse}," + "#[align=right]" + "#[range=control|8][" + "#{?#{window_zoomed_flag},u,z}" + "]#[norange]" + "#[range=control|9][x]#[norange]" + ",}", .text = "Format of text in the pane status lines." },