summaryrefslogtreecommitdiffstats
path: root/cmd-choose-tree.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-12-24 12:25:52 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-12-24 12:25:52 +0000
commitb18ff676469e197000cd89965c41f015b47862da (patch)
tree67e259133b9ab5c34134b6da744453106a5576f9 /cmd-choose-tree.c
parent6a5adfc0baeb178a1b785068e118a524284498f4 (diff)
Add a -u flag to choose-tree to start uncollapsed, from Raghavendra D
Prabhu.
Diffstat (limited to 'cmd-choose-tree.c')
-rw-r--r--cmd-choose-tree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd-choose-tree.c b/cmd-choose-tree.c
index 52f06dc8..24c42994 100644
--- a/cmd-choose-tree.c
+++ b/cmd-choose-tree.c
@@ -39,8 +39,8 @@ void cmd_choose_tree_free(struct window_choose_data *);
const struct cmd_entry cmd_choose_tree_entry = {
"choose-tree", NULL,
- "S:W:swb:c:t:", 0, 1,
- "[-sw] [-b session-template] [-c window template] [-S format] " \
+ "S:W:swub:c:t:", 0, 1,
+ "[-swu] [-b session-template] [-c window template] [-S format] " \
"[-W format] " CMD_TARGET_WINDOW_USAGE,
0,
NULL,
@@ -232,6 +232,9 @@ windows_only:
window_choose_ready(wl->window->active, cur_win,
cmd_choose_tree_callback, cmd_choose_tree_free);
+ if (args_has(args, 'u'))
+ window_choose_expand_all(wl->window->active);
+
return (CMD_RETURN_NORMAL);
}