From 3d86bfef4d417bf4bdec9ef8ed3c65dd5472c595 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Sat, 21 Jun 2025 13:42:43 -0700 Subject: [PATCH] Add hjkl shortkeys for tmux commands bound to arrow keys --- .config/tmux/tmux.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index dd6d8be..1be3077 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -25,6 +25,9 @@ bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xcli bind S-down split-window -v -c "#{pane_current_path}" bind S-right split-window -h -c "#{pane_current_path}" +bind J split-window -v -c "#{pane_current_path}" +bind L split-window -h -c "#{pane_current_path}" + # Override new window bind c new-window -c "~/" @@ -34,9 +37,18 @@ bind -n C-Right select-pane -R bind -n C-Up select-pane -U bind -n C-Down select-pane -D + +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 + bind -n C-S-Left previous-window bind -n C-S-Right next-window +bind -n M-H previous-window +bind -n M-L next-window + # Config bind R source-file ~/.config/tmux/tmux.conf \; display "Config reloaded!"