mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add a -u flag to choose-tree to start uncollapsed, from Raghavendra D
Prabhu.
This commit is contained in:
		@@ -39,8 +39,8 @@ void	cmd_choose_tree_free(struct window_choose_data *);
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const struct cmd_entry cmd_choose_tree_entry = {
 | 
					const struct cmd_entry cmd_choose_tree_entry = {
 | 
				
			||||||
	"choose-tree", NULL,
 | 
						"choose-tree", NULL,
 | 
				
			||||||
	"S:W:swb:c:t:", 0, 1,
 | 
						"S:W:swub:c:t:", 0, 1,
 | 
				
			||||||
	"[-sw] [-b session-template] [-c window template] [-S format] " \
 | 
						"[-swu] [-b session-template] [-c window template] [-S format] " \
 | 
				
			||||||
	"[-W format] " CMD_TARGET_WINDOW_USAGE,
 | 
						"[-W format] " CMD_TARGET_WINDOW_USAGE,
 | 
				
			||||||
	0,
 | 
						0,
 | 
				
			||||||
	NULL,
 | 
						NULL,
 | 
				
			||||||
@@ -232,6 +232,9 @@ windows_only:
 | 
				
			|||||||
	window_choose_ready(wl->window->active, cur_win,
 | 
						window_choose_ready(wl->window->active, cur_win,
 | 
				
			||||||
		cmd_choose_tree_callback, cmd_choose_tree_free);
 | 
							cmd_choose_tree_callback, cmd_choose_tree_free);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (args_has(args, 'u'))
 | 
				
			||||||
 | 
							window_choose_expand_all(wl->window->active);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return (CMD_RETURN_NORMAL);
 | 
						return (CMD_RETURN_NORMAL);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user