chore(.tmux.conf): enable window renumbering for better organization and navigation

feat(.tmux.conf): add key bindings for window movement using leader key + Left/Right arrow
feat(.tmux.conf): add key bindings for pane resize using hjkl keys
This commit is contained in:
David Ibia
2024-02-10 16:25:17 +01:00
parent a541daba04
commit b113756e88

View File

@@ -4,7 +4,7 @@ set-option -sa terminal-features ',xterm-kitty:RGB'
set-option -sg escape-time 10
set-option -g focus-events on
set-window-option -g mode-keys vi
set-option -g renumber-windows on
# Key Bindings
# Auto Source tmux.conf
unbind r
@@ -27,6 +27,10 @@ bind | split-window -h -c '#{pane_current_path}'
unbind '"'
bind - split-window -v -c '#{pane_current_path}'
# Setting up window movement with leader key + Left/Right arrow
bind Left swap-window -t -1\; select-window -t -1
bind Right swap-window -t +1\; select-window -t +1
# Setting up pane resize with hjkl
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5