[PATCH 3/3] Add the choose-tree command

2012-06-11 Thread Thomas Adam
This introduces a choose-tree command, which amalgamates the functionality of choose-session and choose-window to be displayed as a tree. --- trunk/Makefile.am |1 + trunk/cmd-choose-tree.c | 141 +++ trunk/cmd.c |1 + trunk/tm

[PATCH 1/3] Introduce window_choose_add_{session,window}()

2012-06-11 Thread Thomas Adam
Define an abstraction for adding windows and sessions to a choose list, and use them for the choose-{window,session} commands. Both these functions return the struct window_choose_data* pointer. --- trunk/cmd-choose-session.c | 24 ++-- trunk/cmd-choose-window.c | 26 ++--

[PATCH 0/3] choose-tree: display a tree of sessions/windows (PoC)

2012-06-11 Thread Thomas Adam
Hi, This patch series implements a proof of concept to what choose-tree might want to do. They sit directly on top of my on-going work for choose-mode-improvements, and won't apply without those requisite patches present. As with those patches, it's implied also that my xfree(NULL) patches are a

[PATCH 2/3] Interpolate commands before adding to choose list

2012-06-11 Thread Thomas Adam
Previously, each entry's action to be performed from the choose-list, happened at callback time. Instead, interpolate the command much earlier before it's added to the choose-list. This makes it easier later on to chain commands together, such as in choose-tree. --- trunk/cmd-choose-buffer.c |