mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
Add a couple of controls (kill, zoom) to default pane-status-format.
Will be more to come with floating panes. From Dane Jensen in GitHub issue 4981.
This commit is contained in:
@@ -467,6 +467,10 @@ key_bindings_init(void)
|
|||||||
"bind -n MouseDown1Status { switch-client -t= }",
|
"bind -n MouseDown1Status { switch-client -t= }",
|
||||||
"bind -n C-MouseDown1Status { swap-window -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. */
|
/* Mouse wheel down on status line. */
|
||||||
"bind -n WheelDownStatus { next-window }",
|
"bind -n WheelDownStatus { next-window }",
|
||||||
|
|
||||||
|
|||||||
@@ -1305,7 +1305,14 @@ const struct options_table_entry options_table[] = {
|
|||||||
.type = OPTIONS_TABLE_STRING,
|
.type = OPTIONS_TABLE_STRING,
|
||||||
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
|
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
|
||||||
.default_str = "#{?pane_active,#[reverse],}#{pane_index}#[default] "
|
.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."
|
.text = "Format of text in the pane status lines."
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user