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.
This commit is contained in:
nicm
2018-02-28 08:55:44 +00:00
parent 4d72b8fff7
commit 508e2f0b3a
9 changed files with 40 additions and 13 deletions

View File

@ -841,6 +841,7 @@ window_tree_init(struct window_pane *wp, struct cmd_find_state *fs,
data->data = mode_tree_start(wp, args, window_tree_build,
window_tree_draw, window_tree_search, data, window_tree_sort_list,
nitems(window_tree_sort_list), &s);
mode_tree_zoom(data->data, args);
mode_tree_build(data->data);
mode_tree_draw(data->data);