Re: [PATCH 0/6] Convert choose-* cmds to use formats

2012-05-19 Thread Ben Boeckel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sat, May 19, 2012 at 06:22:16 GMT, Thomas Adam wrote: >> There are some nits in general. A macro for format string usage help >> similar to target client/session/window/pane is likely in order now > > This is difficult to do, not least of which be

Re: git svn pull latest code

2012-05-19 Thread Sinbad
On Sun, May 20, 2012 at 9:44 AM, Sinbad wrote: > On Thu, May 17, 2012 at 1:36 PM, Thomas Adam wrote: > >> On 17 May 2012 08:55, Sinbad wrote: >> > i'm trying to pull latest tmux code from git. >> > when i run "git svn clone " it is fetching >> > all the revisions, how can i just pull the latest

Re: git svn pull latest code

2012-05-19 Thread Sinbad
On Thu, May 17, 2012 at 1:36 PM, Thomas Adam wrote: > On 17 May 2012 08:55, Sinbad wrote: > > i'm trying to pull latest tmux code from git. > > when i run "git svn clone " it is fetching > > all the revisions, how can i just pull the latest > > snapshot of the code without getting revision > > h

[PATCH v2 01/11] Add default format template macros

2012-05-19 Thread Thomas Adam
This adds the default format options for sessions, windows, clients, buffers because both templates are used for list-* and choose-*. Also introduces other default template macros for commands already using formatting code. --- trunk/tmux.h | 24 1 file changed, 24 inse

[PATCH v2 09/11] Teach new-window to use formats

2012-05-19 Thread Thomas Adam
This adds formatting support to new-window. --- trunk/cmd-new-window.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/cmd-new-window.c b/trunk/cmd-new-window.c index ccc6d5e..9425855 100644 --- a/trunk/cmd-new-window.c +++ b/trunk/cmd-new-window.c @@ -122,15 +12

[PATCH v2 07/11] Teach break-pane to use formats

2012-05-19 Thread Thomas Adam
This adds formatting support to break-pane. --- trunk/cmd-break-pane.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/trunk/cmd-break-pane.c b/trunk/cmd-break-pane.c index 9d3cbbf..cfa599f 100644 --- a/trunk/cmd-break-pane.c +++ b/trunk/cmd-break-pane.c @@ -93,9 +93,

[PATCH v2 04/11] Teach {choose,list}-sessions to use formats

2012-05-19 Thread Thomas Adam
This teaches the choose/list commands to use -F. --- trunk/cmd-choose-session.c | 33 + trunk/cmd-list-sessions.c | 10 ++ 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/trunk/cmd-choose-session.c b/trunk/cmd-choose-session.c index d3e

[PATCH v2 05/11] Teach {choose,list}-window to use formats

2012-05-19 Thread Thomas Adam
This teaches the list/choose windows command to accept -F, and in doing so, add #{window_panes} to return the total number of panes for a window. --- trunk/cmd-choose-window.c | 41 ++--- trunk/cmd-list-windows.c | 14 +++--- trunk/format.c

[PATCH v2 11/11] Update man page for format work

2012-05-19 Thread Thomas Adam
--- trunk/tmux.1 | 51 +++ 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/trunk/tmux.1 b/trunk/tmux.1 index bc83be1..9b8e404 100644 --- a/trunk/tmux.1 +++ b/trunk/tmux.1 @@ -1036,6 +1036,7 @@ visible pane and negative numbers are li

[PATCH v2 02/11] Teach {choose,list}-buffers to use formats

2012-05-19 Thread Thomas Adam
This teaches the list/choose buffers command to accept -F, and in doing so, creates new buffer-specific format options. --- trunk/cmd-choose-buffer.c | 24 +--- trunk/cmd-list-buffers.c | 25 ++--- trunk/format.c| 11 +++ trunk/tmu

[PATCH v2 03/11] Teach {choose,list}-client to use fomats

2012-05-19 Thread Thomas Adam
This teaches the choose/list commands to use -F. --- trunk/cmd-choose-client.c | 26 ++ trunk/cmd-list-clients.c |9 ++--- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/trunk/cmd-choose-client.c b/trunk/cmd-choose-client.c index 730474d..5ae882

[PATCH v2 06/11] Teach find-window to use formats

2012-05-19 Thread Thomas Adam
Add format support to find-window. This also adds a new format placeholder "#{window_find_matches}" to put information about any content found with find-window. --- trunk/cmd-find-window.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/trunk/

[PATCH v2 10/11] Teach split-window to use formats

2012-05-19 Thread Thomas Adam
This adds formatting support to split-window. --- trunk/cmd-split-window.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trunk/cmd-split-window.c b/trunk/cmd-split-window.c index 5b24d46..6cf08a2 100644 --- a/trunk/cmd-split-window.c +++ b/trunk/cmd-split-window.c @@

[PATCH v2 08/11] Teach display-message about formats

2012-05-19 Thread Thomas Adam
This adds formatting support to display-message. --- trunk/cmd-display-message.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/cmd-display-message.c b/trunk/cmd-display-message.c index f7d75e3..64cbed8 100644 --- a/trunk/cmd-display-message.c +++ b/trunk/cmd-display-

[PATCH v2 00/11] Format support for many commands

2012-05-19 Thread Thomas Adam
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 us