summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm>2022-08-23 08:14:19 +0000
committernicm <nicm>2022-08-23 08:14:19 +0000
commit416c27c9958e928b9ff845c1701acf5b10d0db8d (patch)
tree735413f17d4db0e675b1d0a2ddf1eb96b9c05a8e /key-bindings.c
parent7c2dcd72380dc2d9e119e99cb423a67ae17b6bd2 (diff)
Add scroll-middle copy mode command to make cursor line in the middle,
from Varun Kumar E in GitHub issue 3307.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 4b790dfc..528e0b73 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -605,6 +605,7 @@ key_bindings_init(void)
"bind -Tcopy-mode-vi h { send -X cursor-left }",
"bind -Tcopy-mode-vi j { send -X cursor-down }",
"bind -Tcopy-mode-vi k { send -X cursor-up }",
+ "bind -Tcopy-mode-vi z { send -X scroll-middle }",
"bind -Tcopy-mode-vi l { send -X cursor-right }",
"bind -Tcopy-mode-vi n { send -X search-again }",
"bind -Tcopy-mode-vi o { send -X other-end }",