You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/.tmux.conf

62 lines
1.5 KiB
Plaintext

# Bind r to reload the source
bind r source ~/.tmux.conf
# Remove ESC moving panes, etc
set -s escape-time 0
# Vim binding for pane switching (needs to take multiple inputs tho)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# switch panes using CRTL+hjkl
bind -n C-h select-pane -L
bind -n C-j select-pane -D
bind -n C-k select-pane -U
bind -n C-l select-pane -R
# Resize Panes with CTRL+Shift+HJKL (or just caps)
#bind -n C-H resize-pane -L 2
#bind -n C-J resize-pane -D 2
#bind -n C-K resize-pane -U 2
#bind -n C-L resize-pane -R 2
# Zoom into the current pane
bind-key z resize-pane -Z
bind -n C-z resize-pane -Z
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# Disable auto renames
set-option -g allow-rename off
# Display
set -g base-index 1 # Start window numbering at 1
setw -g pane-base-index 1 # Start pane numbering at 1
set -g renumber-windows on # Renumber windows on close
# Pane Controls
bind -r > swap-pane -D # Next pane
bind -r < swap-pane -U # Prev Pan
bind -n M-> swap-pane -D # Next pane
bind -n M-< swap-pane -U # Next pane
# Window Controls
unbind n
unbind p
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window
bind Tab last-window # move to last active window
# Buffers
bind b list-buffers # list paste buffers
bind p paste-buffer # paste from the top paste buffer
bind P choose-buffer
# Popup Session
#bind -n M-g display-popup -E "tmux new-session -A -s scratch"