From fcbaeea225e0fac8f0b6e404284465579ebd96b6 Mon Sep 17 00:00:00 2001 From: Nathan Knowler Date: Thu, 4 Mar 2021 21:54:37 -0600 Subject: [PATCH] [tmux] add split-window with command bindings --- .config/tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 348b4fd..f15bbe5 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -43,6 +43,10 @@ bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq v bind -n C-\\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l" bind -n C-Space command-prompt -p ":new-window" "new-window %%" +bind -n C-L command-prompt -p ":split-window -h" "split-window -h %%" +bind -n C-H command-prompt -p ":split-window -bh" "split-window -bh %%" +bind -n C-K command-prompt -p ":split-window -b" "split-window -b %%" +bind -n C-J command-prompt -p ":split-window" "split-window %%" bind e new-window -n editor $EDITOR \; set-option -p remain-on-exit on bind r respawn-pane -k -- 2.51.2