<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rtmux.git/cmd-unlink-window.c, branch master</title>
<subtitle>Tmux with Rahm's extra hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/'/>
<entry>
<title>Merge unlink-window into kill-window.</title>
<updated>2014-10-22T23:11:41+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2014-10-22T23:11:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=68cb1c0e6b169c6765e0d52c5319fe4354edaf09'/>
<id>68cb1c0e6b169c6765e0d52c5319fe4354edaf09</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Instead of setting up the default keys by building the key struct</title>
<updated>2014-10-20T22:29:25+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2014-10-20T22:29:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=45dfc5a074e2ceae11a6d4aeae597bee1e028503'/>
<id>45dfc5a074e2ceae11a6d4aeae597bee1e028503</id>
<content type='text'>
directly with a helper function in the cmd_entry, include a table of
bind-key commands and pass them through the command parser and a
temporary cmd_q.

As well as being smaller, this will allow default bindings to be command
sequences which will probably be needed soon.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
directly with a helper function in the cmd_entry, include a table of
bind-key commands and pass them through the command parser and a
temporary cmd_q.

As well as being smaller, this will allow default bindings to be command
sequences which will probably be needed soon.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the barely-used and unnecessary command check() function.</title>
<updated>2013-10-10T12:00:18+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2013-10-10T12:00:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=d45c12b6c9405da549197c2852ac124fc0d5b340'/>
<id>d45c12b6c9405da549197c2852ac124fc0d5b340</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a command queue to standardize and simplify commands that call other</title>
<updated>2013-03-24T09:54:10+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicm@openbsd.org</email>
</author>
<published>2013-03-24T09:54:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=20636d956dd36c1f14152569a4d44a50eea9083d'/>
<id>20636d956dd36c1f14152569a4d44a50eea9083d</id>
<content type='text'>
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-&gt;session is NULL otherwise an attached client.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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-&gt;session is NULL otherwise an attached client.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make command exec functions return an enum rather than -1/0/1 values and</title>
<updated>2012-07-11T07:10:15+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicm@openbsd.org</email>
</author>
<published>2012-07-11T07:10:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=ede8312d59c5d08990f83f38682c26434823525b'/>
<id>ede8312d59c5d08990f83f38682c26434823525b</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up and simplify tmux command argument parsing.</title>
<updated>2011-01-04T00:42:46+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicm@openbsd.org</email>
</author>
<published>2011-01-04T00:42:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=7502cb3adbb26a2f94445a35626e64041d6769f9'/>
<id>7502cb3adbb26a2f94445a35626e64041d6769f9</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Massive spaces-&gt;tabs and trailing whitespace cleanup, hopefully for the last</title>
<updated>2009-12-03T22:50:09+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicm@openbsd.org</email>
</author>
<published>2009-12-03T22:50:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=15a64b805e46584d37cc6745383709632e287999'/>
<id>15a64b805e46584d37cc6745383709632e287999</id>
<content type='text'>
time now I've configured emacs to make them displayed in really annoying
colours...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
time now I've configured emacs to make them displayed in really annoying
colours...
</pre>
</div>
</content>
</entry>
<entry>
<title>Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the</title>
<updated>2009-11-13T19:53:28+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicm@openbsd.org</email>
</author>
<published>2009-11-13T19:53:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=76ef8770cd983e7ece581fbcfb3a7ad5e115aae5'/>
<id>76ef8770cd983e7ece581fbcfb3a7ad5e115aae5</id>
<content type='text'>
command entry structs and a couple of functions to check/set the flags.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
command entry structs and a couple of functions to check/set the flags.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add "grouped sessions" which have independent name, options, current window and</title>
<updated>2009-10-10T10:02:48+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicm@openbsd.org</email>
</author>
<published>2009-10-10T10:02:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=9dd72b958366c44b6d62680836983c58d2a0a42f'/>
<id>9dd72b958366c44b6d62680836983c58d2a0a42f</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Nuke unused variables and fix stupid error message.</title>
<updated>2009-09-20T17:31:26+00:00</updated>
<author>
<name>Nicholas Marriott</name>
<email>nicm@openbsd.org</email>
</author>
<published>2009-09-20T17:31:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=105ce36792717a0916cab18b7dd0a11db1f7c84a'/>
<id>105ce36792717a0916cab18b7dd0a11db1f7c84a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
