From 962958568d1d29f42f74750d5be1f61274c21882 Mon Sep 17 00:00:00 2001 From: Nathan Steel Date: Fri, 6 Aug 2021 12:22:15 +0100 Subject: [PATCH] Add additional keybindings - Add basic keybinds for display, pane, and window controls - Add basic keybinds for buffers --- .tmux.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index d76cd75..2aec515 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -32,6 +32,29 @@ 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"