Hi, This improves upon my original POC patch from the other day, to add in support for expanding/collapsing sessions in choose-tree.
Currently, the following is implemented through this new patch: * Starts off collapsed by default. * Adds +/- indicators to each session line depending on state. * Left key collapses the selected session (or the windows in that session) * Right key expands the selected session. * C-Left collapses *all* sessions. * C-Right expands *all* sessions. Apologies for being slightly naughty and not splitting this patch up into smaller chunks for review, I'm a little short on time at the moment. Feedback welcome. I think it's functionally complete from the discussions Nicholas and I have had. If we go with this for a bit, I'd be tempted to say switch the "choose-session" command over to choose-tree, since the default view of choose-tree is to show only sessions -- but that's likely a minor point. Any questions, do please ask. Kindly, -- Thomas Adam Thomas Adam (1): Add expand/collapse functionality in choose-tree mode-key.c | 12 ++++ tmux.h | 12 +++- window-choose.c | 210 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 231 insertions(+), 3 deletions(-) -- 1.7.11.4 ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users