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.
This commit is contained in:
Peter Hoeg 2016-07-28 19:10:42 +08:00 committed by Franz Pletz
parent ffbe8d13fd
commit 62f2f72e98

View file

@ -27,7 +27,7 @@ let
set -g status-keys ${cfg.keyMode}
set -g mode-keys ${cfg.keyMode}
${if cfg.keyMode == "vi" then ''
${if cfg.keyMode == "vi" && cfg.customPaneNavigationAndResize then ''
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
@ -86,6 +86,13 @@ in {
description = "Use 24 hour clock.";
};
customPaneNavigationAndResize = mkOption {
default = false;
example = true;
type = types.bool;
description = "Override the hjkl and HJKL bindings for pane navigation and resizing in VI mode.";
};
escapeTime = mkOption {
default = 500;
example = 0;