dotfiles/.tmux.conf

34 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

set -s escape-time 0
# S- doesnt work with keys that send a different character when Shifted. bind S-n ..., bind S-1 ..., etc dont work. Use bind N ..., bind ! ..., etc instead.
# But if you want to bind Alt + Shift + ←, for example, then it is bind M-S-Left ....
#Shiftd keys also dont 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