Add easy window ordering binding
This commit is contained in:
parent
22372825d7
commit
d3c958fc46
|
@ -316,6 +316,13 @@ bind -n M-j select-pane -D
|
||||||
# set <prefix> space to toggle between pane layouts
|
# set <prefix> space to toggle between pane layouts
|
||||||
bind '"' next-layout
|
bind '"' next-layout
|
||||||
|
|
||||||
|
# Pressing Ctrl+Shift+Left (will move the current window to the left. Similarly right. No need to use the modifier (C-a).
|
||||||
|
# https://superuser.com/questions/343572/how-do-i-reorder-tmux-windows
|
||||||
|
# For tmux 3.0 version, you should use following key bindings
|
||||||
|
# bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
|
||||||
|
# bind-key -n C-S-Right swap-window -t +1\; select-window -t +1)
|
||||||
|
bind-key -n C-S-Left swap-window -t -1
|
||||||
|
bind-key -n C-S-Right swap-window -t +1
|
||||||
|
|
||||||
# -- custom variables ----------------------------------------------------------
|
# -- custom variables ----------------------------------------------------------
|
||||||
# to define a custom #{foo} variable, define a POSIX shell function between the
|
# to define a custom #{foo} variable, define a POSIX shell function between the
|
||||||
|
|
|
@ -316,6 +316,13 @@ bind -n M-j select-pane -D
|
||||||
# set <prefix> space to toggle between pane layouts
|
# set <prefix> space to toggle between pane layouts
|
||||||
bind '"' next-layout
|
bind '"' next-layout
|
||||||
|
|
||||||
|
# Pressing Ctrl+Shift+Left (will move the current window to the left. Similarly right. No need to use the modifier (C-a).
|
||||||
|
# https://superuser.com/questions/343572/how-do-i-reorder-tmux-windows
|
||||||
|
# For tmux 3.0 version, you should use following key bindings
|
||||||
|
# bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
|
||||||
|
# bind-key -n C-S-Right swap-window -t +1\; select-window -t +1)
|
||||||
|
bind-key -n C-S-Left swap-window -t -1
|
||||||
|
bind-key -n C-S-Right swap-window -t +1
|
||||||
|
|
||||||
# -- custom variables ----------------------------------------------------------
|
# -- custom variables ----------------------------------------------------------
|
||||||
# to define a custom #{foo} variable, define a POSIX shell function between the
|
# to define a custom #{foo} variable, define a POSIX shell function between the
|
||||||
|
|
Loading…
Reference in New Issue