git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit62f2f72e98453e0060c38d98930d2a3eabefeaae authorPeter Hoeg <peter@speartail.com> dateThu 28 Jul 2016, 19:10 (10 years ago) parentffbe8d1
1 file changed+8−1
nixos/modules/programs/tmux.nix+8−1
nixos/modules/programs/tmux.nix+8−1
@@ -27,7 +27,7 @@ let
2727 set -g status-keys ${cfg.keyMode}
2828 set -g mode-keys ${cfg.keyMode}
2929
30− ${if cfg.keyMode == "vi" then ''
30+ ${if cfg.keyMode == "vi" && cfg.customPaneNavigationAndResize then ''
3131 bind h select-pane -L
3232 bind j select-pane -D
3333 bind k select-pane -U
@@ -86,6 +86,13 @@ in {
8686 description = "Use 24 hour clock.";
8787 };
8888
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.";
94+ };
95+
8996 escapeTime = mkOption {
9097 default = 500;
9198 example = 0;