tmux module: do not override keys by default in VI mode (#17330)

We want to stick to upstream defaults as much as possible.

As pointed out by @8573 in #16999, this was not the case.

authored by

Peter Hoeg and committed by
Franz Pletz
62f2f72e ffbe8d13

+8 -1
+8 -1
nixos/modules/programs/tmux.nix
··· 27 27 set -g status-keys ${cfg.keyMode} 28 28 set -g mode-keys ${cfg.keyMode} 29 29 30 - ${if cfg.keyMode == "vi" then '' 30 + ${if cfg.keyMode == "vi" && cfg.customPaneNavigationAndResize then '' 31 31 bind h select-pane -L 32 32 bind j select-pane -D 33 33 bind k select-pane -U ··· 84 84 example = true; 85 85 type = types.bool; 86 86 description = "Use 24 hour clock."; 87 + }; 88 + 89 + customPaneNavigationAndResize = mkOption { 90 + default = false; 91 + example = true; 92 + type = types.bool; 93 + description = "Override the hjkl and HJKL bindings for pane navigation and resizing in VI mode."; 87 94 }; 88 95 89 96 escapeTime = mkOption {