summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm>2018-02-28 08:55:44 +0000
committernicm <nicm>2018-02-28 08:55:44 +0000
commit508e2f0b3aaf2db9b692863738e7ca75765fc70c (patch)
tree4c956b3d1a1b43d9484637f4103dae036c1f1fe2 /key-bindings.c
parent4d72b8fff7dfc170268af5a4c5323a8d9b815f74 (diff)
Add -Z flag to choose-tree, choose-client, choose-buffer to
automatically zoom the pane when the mode is entered and unzoom when it exits, assuming the pane is not already zoomed. Add -Z to the default key bindings.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/key-bindings.c b/key-bindings.c
index a13c7977..83670d2d 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -183,9 +183,9 @@ key_bindings_init(void)
"bind 9 select-window -t:=9",
"bind : command-prompt",
"bind \\; last-pane",
- "bind = choose-buffer",
+ "bind = choose-buffer -Z",
"bind ? list-keys",
- "bind D choose-client",
+ "bind D choose-client -Z",
"bind E select-layout -E",
"bind L switch-client -l",
"bind M select-pane -M",
@@ -202,9 +202,9 @@ key_bindings_init(void)
"bind p previous-window",
"bind q display-panes",
"bind r refresh-client",
- "bind s choose-tree -s",
+ "bind s choose-tree -Zs",
"bind t clock-mode",
- "bind w choose-tree -w",
+ "bind w choose-tree -Zw",
"bind x confirm-before -p\"kill-pane #P? (y/n)\" kill-pane",
"bind z resize-pane -Z",
"bind { swap-pane -U",