[PATCH v2 3/4] Add "automatic-renumber-windows" session option

2012-04-22 Thread Thomas Adam
A given session can always be told to renumber its winlinks when a window is destroyed in that session. --- trunk/options-table.c |5 + trunk/server-fn.c |5 + 2 files changed, 10 insertions(+) diff --git a/trunk/options-table.c b/trunk/options-table.c index 1eb50e4..81fce32 1

[PATCH v2 2/4] Add definition for window_renumber_windows

2012-04-22 Thread Thomas Adam
This is responsible for reassigning new index numbers to the winlinks in a given session. --- trunk/tmux.h |2 ++ trunk/window.c | 45 + 2 files changed, 47 insertions(+) diff --git a/trunk/tmux.h b/trunk/tmux.h index 23352d6..7f21754 100644 ---

[PATCH v2 0/4] Add support for renumbering windows

2012-04-22 Thread Thomas Adam
Hi, This is a re-roll of a set of older patches I sent through last year. The idea behind this was to allow tmux to automatically reumber windows in sequence when deleting windows from a session so that no "gaps" appeared. This can be useful when creating lots of windows in a session. I've hopef

[PATCH v2 4/4] Add docs for automatic-renumber-windows, etc.

2012-04-22 Thread Thomas Adam
This updates the tmux manpage for the automatic-renumber-windows session option and the renumber-windows command. --- trunk/tmux.1 | 21 + 1 file changed, 21 insertions(+) diff --git a/trunk/tmux.1 b/trunk/tmux.1 index 2975268..106f45f 100644 --- a/trunk/tmux.1 +++ b/trunk/t

[PATCH v2 1/4] Add cmd-renumber-windows definition

2012-04-22 Thread Thomas Adam
This adds the definition file for the renumber-windows command, as well as supporting its addition in the Makefile. --- trunk/Makefile.am|1 + trunk/cmd-renumber-windows.c | 53 ++ trunk/cmd.c |1 + trunk/tmux.h

[PATCH 1/1] Add "window-status-separator" option

2012-04-22 Thread Thomas Adam
This allows for specifying the character(s) for separating windows on the status line. --- trunk/options-table.c |5 + trunk/status.c| 10 -- trunk/tmux.1 |4 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/trunk/options-table.c b/trunk/o

[PATCH 0/1] Add window-status-separator option

2012-04-22 Thread Thomas Adam
Currently windows are drawn on the status line with a space between them. However some people (myself included) prefer other visual characters such as a pipe symbol ("|"). Whilst it's possible to use this with window-status-format: "setw -g window-status-format "#W |", the pipe symbol forms part