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 hopefully got window_renumber_windows() correct; I'm now creating a new set of winlinks to assign back to s->windows rather than mangling wl->idx directly which I was doing previously. This now seems to work for me at any rate. My only other query was how/if renumbering windows needs to hook into control mode's notify_*() functions? I've not done that here, since that seems to be in a state of flux at the moment. Any questions, just shout. Thomas Adam (4): Add cmd-renumber-windows definition Add definition for window_renumber_windows Add "automatic-renumber-windows" session option Add docs for automatic-renumber-windows, etc. -- trunk/Makefile.am | 1 + trunk/cmd-renumber-windows.c | 53 ++++++++++++++++++++++++++++++++++++++++++ trunk/cmd.c | 1 + trunk/options-table.c | 5 ++++ trunk/server-fn.c | 5 ++++ trunk/tmux.1 | 21 ++++++++++++++++ trunk/tmux.h | 3 ++ trunk/window.c | 46 ++++++++++++++++++++++++++++++++++++ 8 files changed, 135 insertions(+), 0 deletions(-) create mode 100644 trunk/cmd-renumber-windows.c -- 1.7.5.4 ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users