Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Code Log


Commit Date  
[a36da3] (3.0 kB) by Nicholas Marriott Nicholas Marriott

Remove the barely-used and unnecessary command check() function.

2013-08-21 17:01:40 View
Download
[c71844] (3.0 kB) by Nicholas Marriott Nicholas Marriott

Add resize-pane -Z to temporary zoom the active pane to occupy the full
window or unzoom (restored to the normal layout) if it already zoomed,
bound to C-b z by default. The pane is unzoomed on pretty much any
excuse whatsoever.

We considered making this a new layout but the requirements are quite
different from layouts so decided it is better as a special case. Each
current layout cell is saved, a temporary one-cell layout generated and
all except the active pane set to NULL.

Prompted by suggestions and scripts from several. Thanks to Aaron Jensen
and Thiago Padilha for testing an earlier version.

2013-03-24 09:57:59 View
Download
[20636d] (3.0 kB) by Nicholas Marriott Nicholas Marriott

Add a command queue to standardize and simplify commands that call other
commands and allow a command to block execution of subsequent
commands. This allows run-shell and if-shell to be synchronous which has
been much requested.

Each client has a default command queue and commands are consumed one at
a time from it. A command may suspend execution from the queue by
returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() -
for example run-shell does this from the callback that is fired after
the job is freed.

When the command queue becomes empty, command clients are automatically
exited (unless attaching). A callback is also fired - this is used for
nested commands in, for example, if-shell which can block execution of
the client's cmdq until a new cmdq becomes empty.

Also merge all the old error/info/print functions together and lose the
old curclient/cmdclient distinction - a cmdq is bound to one client (or
none if in the configuration file), this is a command client if
c->session is NULL otherwise an attached client.

2013-03-24 09:54:10 View
Download
[bb8457] (3.0 kB) by Nicholas Marriott Nicholas Marriott

Fix error reporting for client commands by adding a flag to
cmd_find_client to tell it whether or not to show errors, sometimes it's
needed and sometimes not.

2013-03-24 09:27:19 View
Download
[c519f9] (3.0 kB) by Nicholas Marriott Nicholas Marriott

evbuffer_readline returns allocated storage, don't leak it.

2013-03-22 15:55:22 View
Download
[c5239c] (3.0 kB) by Nicholas Marriott Nicholas Marriott

Add resize-pane -Z to temporary zoom the active pane to occupy the full window
or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z
by default. The pane is unzoomed on pretty much any excuse whatsoever.

We considered making this a new layout but the requirements are quite different
from layouts so decided it is better as a special case. Each current layout
cell is saved, a temporary one-cell layout generated and all except the active
pane set to NULL.

Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and
Thiago Padilha for testing an earlier version.

2013-02-24 00:25:03 View
Download
[396430] (3.0 kB) by Nicholas Marriott Nicholas Marriott

Add a command queue to standardize and simplify commands that call other
commands and allow a command to block execution of subsequent commands. This
allows run-shell and if-shell to be synchronous which has been much requested.

Each client has a default command queue and commands are consumed one at a time
from it. A command may suspend execution from the queue by returning
CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example
run-shell does this from the callback that is fired after the job is freed.

When the command queue becomes empty, command clients are automatically exited
(unless attaching). A callback is also fired - this is used for nested commands
in, for example, if-shell which can block execution of the client's cmdq until
a new cmdq becomes empty.

Also merge all the old error/info/print functions together and lose the old
curclient/cmdclient distinction - a cmdq is bound to one client (or none if in
the configuration file), this is a command client if c->session is NULL
otherwise an attached client.

2013-02-23 22:25:58 View
Download
[3a2e9d] (3.0 kB) by Nicholas Marriott Nicholas Marriott

Fix error reporting for client commands by adding a flag to cmd_find_client to
tell it whether or not to show errors, sometimes it's needed and sometimes not.

2013-02-22 23:04:53 View
Download
[41c39e] (3.0 kB) by Nicholas Marriott Nicholas Marriott

Remove stray blank line.

2013-02-20 13:01:59 View
Download
[b43388] (3.0 kB) by Nicholas Marriott Nicholas Marriott

We can't tell what the terminal has done with a DCS string, so reset the
cursor and attributes afterwards.

2012-09-05 09:59:41 View
Download
[1c6080] (3.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1162:

Use a separate define for each default format template and strip clutter
from the choose-tree defaults.

2012-08-31 09:18:50 View
Download
[1f5e6e] (3.0 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1151:

Make command exec functions return an enum rather than -1/0/1 values and
add a new value to mean "leave client running but don't attach" to fix
problems with using some commands in a command sequence. Most of the
work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.

2012-07-11 19:37:32 View
Download
[a432fc] (2.9 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1150:

xfree is not particularly helpful, remove it. From Thomas Adam.

2012-07-11 19:34:16 View
Download
[5cc496] (2.9 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1119:

Switch all of the various choose- and list- commands over to the format
infrastructure, from Thomas Adam.

2012-05-22 21:03:25 View
Download
[3893cc] (2.9 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1049:

Add -P/-F flags to break-pane too, from George Nachman.

2012-03-18 01:38:27 View
Download
[c82e06] (2.4 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 1024:

Move window name changes into wrapper function window_set_name, from
George Nachman.

2012-02-02 02:00:12 View
Download
[391f1f] (2.3 kB) by Tiago Cunha Tiago Cunha

Expand the Id keyword.

2011-07-09 09:42:33 View
Download
[21140d] (2.4 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 910:

Reset last pane properly when using break-pane as well, fixes a problem
reported to Debian by Hannes von Haugwitz (bug 622677).

2011-05-18 20:32:47 View
Download
[1df427] (2.3 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 829:

Clean up and simplify tmux command argument parsing.

Originally, tmux commands were parsed in the client process into a
struct with the command data which was then serialised and sent to the
server to be executed. The parsing was later moved into the server (an
argv was sent from the client), but the parse step and intermediate
struct was kept.

This change removes that struct and the separate parse step. Argument
parsing and printing is now common to all commands (in arguments.c) with
each command left with just an optional check function (to validate the
arguments at parse time), the exec function and a function to set up any
key bindings (renamed from the old init function).

This is overall more simple and consistent.

There should be no changes to any commands behaviour or syntax although
as this touches every command please watch for any unexpected changes.

2011-01-07 14:45:34 View
Download
[cc094f] (2.4 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 581:

Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...

2009-12-04 22:14:47 View
Download
[e35f5b] (2.4 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 539:

Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the
command entry structs and a couple of functions to check/set the flags.

2009-11-14 17:56:39 View
Download
[6a1ebb] (2.4 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 371:

Add "grouped sessions" which have independent name, options, current window and
so on but where the linked windows are synchronized (ie creating, killing
windows and so on are mirrored between the sessions). A grouped session may be
created by passing -t to new-session.

Had this around for a while, tested by a couple of people.

2009-10-11 23:38:16 View
Download
[e61ee9] (2.4 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 257:

Add a base-index session option to specify the first index checked when looking
for an index for a new window.

2009-08-16 19:16:27 View
Download
[1650b8] (2.3 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 200:

Merge pane number into the target specification for pane commands. Instead of
using -p index, a target pane is now addressed with the normal -t window form
but suffixed with a period and a pane index, for example :0.2 or
mysess:mywin.1. An unadorned number such as -t 1 is tried as a pane index in
the current window, if that fails the same rules are followed as for a target
window and the current pane in that window used.

As a side-effect this now means that swap-pane can swap panes between
different windows.

Note that this changes the syntax of the break-pane, clear-history, kill-pane,
resize-pane, select-pane and swap-pane commands.

2009-07-30 20:45:20 View
Download
[d637cb] (2.5 kB) by Tiago Cunha Tiago Cunha

Sync OpenBSD patchset 181:

Make all messages sent between the client and server fixed size.

This is the first of two changes to make the protocol more resilient and less
sensitive to other changes in the code, particularly with commands. The client
now packs argv into a buffer and sends it to the server for parsing, rather
than doing it itself and sending the parsed command data.

As a side-effect this also removes a lot of now-unused command marshalling
code.

Mixing a server without this change and a client with or vice versa will cause
tmux to hang or crash, please ensure that tmux is entirely killed before
upgrading.

2009-07-28 22:12:16 View
Download
Older >