mirror of
https://github.com/tmux/tmux.git
synced 2026-03-31 08:46:27 +00:00
Fix minimise window gesture to be like MacOS and Windows where if you click an active window in the status line it minimises it and if its already minimised it unminimises it. The ux feel now is natural.
This commit is contained in:
@@ -351,8 +351,6 @@ key_bindings_init(void)
|
|||||||
static const char *const defaults[] = {
|
static const char *const defaults[] = {
|
||||||
/* Prefix keys. */
|
/* Prefix keys. */
|
||||||
"bind -N 'Minimise pane' _ { minimise-pane }",
|
"bind -N 'Minimise pane' _ { minimise-pane }",
|
||||||
/* Mouse button 1 double click on status line. */
|
|
||||||
"bind -n DoubleClick1Status { minimise-pane -t= }",
|
|
||||||
|
|
||||||
"bind -N 'Send the prefix key' C-b { send-prefix }",
|
"bind -N 'Send the prefix key' C-b { send-prefix }",
|
||||||
"bind -N 'Rotate through the panes' C-o { rotate-window }",
|
"bind -N 'Rotate through the panes' C-o { rotate-window }",
|
||||||
@@ -471,7 +469,7 @@ key_bindings_init(void)
|
|||||||
"bind -n MouseDrag1Border { resize-pane -M }",
|
"bind -n MouseDrag1Border { resize-pane -M }",
|
||||||
|
|
||||||
/* Mouse button 1 down on status line. */
|
/* Mouse button 1 down on status line. */
|
||||||
"bind -n MouseDown1Status { switch-client -t= }",
|
"bind -n MouseDown1Status { if -F '#{&&:#{pane_active},#{!#{pane_minimised_flag}}}' { minimise-pane -t= } { switch-client -t= } }",
|
||||||
"bind -n C-MouseDown1Status { swap-window -t@ }",
|
"bind -n C-MouseDown1Status { swap-window -t@ }",
|
||||||
|
|
||||||
/* Mouse wheel down on status line. */
|
/* Mouse wheel down on status line. */
|
||||||
|
|||||||
Reference in New Issue
Block a user