34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
set -s escape-time 0
|
||
|
||
# S- doesn’t work with keys that send a different character when Shift‘ed. bind S-n ..., bind S-1 ..., etc don’t work. Use bind N ..., bind ! ..., etc instead.
|
||
# But if you want to bind Alt + Shift + ←, for example, then it is bind M-S-Left ....
|
||
#Shift‘d keys also don’t work with Ctrl because Ctrl-modified keys are case-insensitive in terminals. So while you can do bind C-N ... the binding will be triggered by either Ctrl + Shift + n or just Ctrl + n.
|
||
# more info at https://github.com/tmux/tmux/wiki/Modifier-Keys
|
||
|
||
# select panes using ctrl+h/j/k/l
|
||
bind -n C-h select-pane -L
|
||
bind -n C-l select-pane -R
|
||
bind -n C-k select-pane -U
|
||
bind -n C-j select-pane -D
|
||
|
||
# split using ctrl+shift+s/v
|
||
bind -n C-s split-window -h
|
||
bind -n C-v split-window -v
|
||
|
||
# resize panes
|
||
bind -n C-M-h resize-pane -L 5
|
||
bind -n C-M-l resize-pane -R 5
|
||
bind -n C-M-j resize-pane -D 5
|
||
bind -n C-M-k resize-pane -U 5
|
||
|
||
# move between windows
|
||
bind -n M-n next-window
|
||
bind -n M-p previous-window
|
||
|
||
# create new window
|
||
bind -n M-x new-window
|
||
# no need to bind close-window when you could just C-d
|
||
|
||
# list all windows
|
||
bind -n M-w choose-tree -Zw
|