5 ms·
Best thing I ever did for tmux was to get rid of the annoying command prefix altogether and just use bindings with Ctrl/Shift and the arrow keys - it's much fas
by nandkeypull 9y ago
Best thing I ever did for tmux was to get rid of the annoying command prefix altogether and just use bindings with Ctrl/Shift and the arrow keys - it's much faster, e.g.
# Window switching
bind -n S-up new-window
bind -n S-down confirm-before -p "kill-window #W? (y/n)" kill-window
bind -n S-left prev
bind -n S-right next
# Pane switching
bind -n C-left select-pane -L
bind -n C-right select-pane -R
bind -n C-down select-pane -D
bind -n C-up select-pane -U
# Special pane operations
bind -n C-M-up respawn-pane -k
bind -n C-M-down kill-pane
bind -n C-M-left swap-pane -U
bind -n C-M-right swap-pane -D
# Window splitting
bind -n C-M-\ split-window -h
bind -n C-M-] split-window -v
- sandGorgon 9y agoThanks ! I was looking for gnome shell style navigation
- betaby 9y agoC-M-left,right is used in some wm to cycle desktops, otherwise good idea.
- xfalcox 9y agoHave you ever heard about byobu? It's basically a tmux wrapper with crtl/shift hotkeys by default.