From 8d819221ffde29d34ff3c5bd15cbc24bc7b59e9b Mon Sep 17 00:00:00 2001 From: James Dixon Date: Sat, 6 Jan 2024 03:31:10 -0500 Subject: [PATCH] adjust keybinds --- config/tmux/.tmux.conf | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/config/tmux/.tmux.conf b/config/tmux/.tmux.conf index c240837..1a37126 100644 --- a/config/tmux/.tmux.conf +++ b/config/tmux/.tmux.conf @@ -38,12 +38,20 @@ bind-key h select-pane -L bind-key j select-pane -D bind-key k select-pane -U bind-key l select-pane -R +bind-key C-k select-pane -L +bind-key C-j select-pane -D +bind-key C-k select-pane -U +bind-key C-l select-pane -R -# Resize panes - less pain -bind-key C-J resize-pane -D 5 -bind-key C-K resize-pane -U 5 -bind-key C-H resize-pane -L 5 -bind-key C-L resize-pane -R 5 +# Resize panes +bind-key H resize-pane -L 10 +bind-key J resize-pane -D 10 +bind-key K resize-pane -U 10 +bind-key L resize-pane -R 10 + +# Select windows +bind-key C-n next-window +bind-key C-p next-window # Move windows easier bind-key -r < swap-window -t -1 @@ -57,6 +65,9 @@ bind c new-window -c '#{pane_current_path}' # re-source this conf bind-key r source-file ~/.tmux.conf \; display-message "Sourced ~/.tmux.conf!" +# Run manual page in a split window +# bind-key K command-prompt "split-window 'exec man %%'" + # source local confs if they exist if-shell -b '[ -f "$HOME/.config/tmux.conf" ]' "source-file ~/.config/tmux.conf" if-shell -b '[ -f "$HOME/.local/tmux.conf" ]' "source-file ~/.local/tmux.conf"