From aa2426d955d77aa5b15a8fa43b306fe79355b147 Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.dev> Date: Mon, 17 Mar 2025 20:05:16 +0000 Subject: [PATCH] Add Vim-like pane navigation --- nix/modules/home-manager/cli/tmux.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/modules/home-manager/cli/tmux.nix b/nix/modules/home-manager/cli/tmux.nix index 87700f59..b785d077 100644 --- a/nix/modules/home-manager/cli/tmux.nix +++ b/nix/modules/home-manager/cli/tmux.nix @@ -74,6 +74,12 @@ in set-option -g pane-active-border-style "fg=#1f2335" set-option -g pane-border-style "fg=#1f2335" + # Vim-like pane navigation. + bind h select-pane -L + bind j select-pane -D + bind k select-pane -U + bind l select-pane -R + bind-key -r f run-shell "tmux new-window tmux-sessionizer" bind-key -r N split-window -h "notes"