Hi, This is version 2 of the original set of patches I sent out a few days ago to add formatting support to a bunch of existing commands.
Notable changes from version 1: * Tried to maintain getopts sort-order. * Fixed missing "F:" in cmd-choose-session.c * Amalgamated several smaller commands using -F by way of -P (such as display-message, new-window, split-window, etc.) use the same format template. * Converted over find-window to use formats. In combining some of the DEFAULT_* macros, and hence changing the defaults, I've tried to do the sane thing. But a default is just that -- something which can be changed, so I'd rather not spend too long on getting the defaults right when they're close enough, and in my mind, reduces the code duplication. I'd argue that wins over minor changes. Any questions, do please ask. Kindly, -- Thomas Adam Thomas Adam (11): Add default format template macros Teach {choose,list}-buffers to use formats Teach {choose,list}-client to use fomats Teach {choose,list}-sessions to use formats Teach {choose,list}-window to use formats Teach find-window to use formats Teach break-pane to use formats Teach display-message about formats Teach new-window to use formats Teach split-window to use formats Update man page for format work trunk/cmd-break-pane.c | 7 +++--- trunk/cmd-choose-buffer.c | 24 ++++++++++++++------ trunk/cmd-choose-client.c | 26 +++++++++++++++------- trunk/cmd-choose-session.c | 33 ++++++++++++++-------------- trunk/cmd-choose-window.c | 41 +++++++++++++++------------------- trunk/cmd-display-message.c | 2 +- trunk/cmd-find-window.c | 30 +++++++++++++++++-------- trunk/cmd-list-buffers.c | 25 +++++++++++++++------ trunk/cmd-list-clients.c | 9 ++------ trunk/cmd-list-sessions.c | 10 ++------- trunk/cmd-list-windows.c | 14 +++--------- trunk/cmd-new-window.c | 6 ++--- trunk/cmd-split-window.c | 5 ++--- trunk/format.c | 12 ++++++++++ trunk/tmux.1 | 51 ++++++++++++++++++++++++++++++++++++------- trunk/tmux.h | 25 +++++++++++++++++++++ 16 files changed, 206 insertions(+), 114 deletions(-) -- 1.7.10 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users