From 508e2f0b3aaf2db9b692863738e7ca75765fc70c Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 28 Feb 2018 08:55:44 +0000 Subject: 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. --- key-bindings.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'key-bindings.c') 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", -- cgit