feat(tmux): prefix < > move current window left/right
This commit is contained in:
1 parent
7ca5cfba57
commit
f92b026467
1 file changed
+4
@@ -142,6 +142,10 @@ bind-key -r C-p previous-window \; set status on
|
|||||||
# Cmd+arrow tab switching in that profile (Cmd+Shift+[ ] still work).
|
# Cmd+arrow tab switching in that profile (Cmd+Shift+[ ] still work).
|
||||||
bind-key -n M-Left previous-window \; set status on
|
bind-key -n M-Left previous-window \; set status on
|
||||||
bind-key -n M-Right next-window \; set status on
|
bind-key -n M-Right next-window \; set status on
|
||||||
|
# Move the current window one slot left/right; swap alone keeps focus on the
|
||||||
|
# slot, so select follows the window. Replaces the stock < > menus (right click).
|
||||||
|
bind-key -r < swap-window -t -1 \; select-window -t -1
|
||||||
|
bind-key -r > swap-window -t +1 \; select-window -t +1
|
||||||
|
|
||||||
# Moving across panes (and vim), no prefix: ctrl + u/h/j/k laid out as arrows
|
# Moving across panes (and vim), no prefix: ctrl + u/h/j/k laid out as arrows
|
||||||
# (u up, h left, j down, k right). These keys sit at the same place on AZERTY
|
# (u up, h left, j down, k right). These keys sit at the same place on AZERTY
|
||||||
|
|||||||
Reference in new issue
Block a user