<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rtmux.git/cmd-string.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>Replace the split parser code (cfg.c and cmd-string.c) with a single</title>
<updated>2019-05-23T11:13:30+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2019-05-23T11:13:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=723010ba72e337832402f8e44981c02caa30b476'/>
<id>723010ba72e337832402f8e44981c02caa30b476</id>
<content type='text'>
parser using yacc(1). This is a major change but is clearer and simpler
and allows some edge cases to be made more consistent, as well as
tidying up how aliases are handled. It will also allow some further
improvements later.

Entirely the same parser is now used for parsing the configuration file
and for string commands. This means that constructs previously only
available in .tmux.conf, such as %if, can now be used in string commands
(for example, those given to if-shell - not commands invoked from the
shell, they are still parsed by the shell itself).

The only syntax change I am aware of is that #{} outside quotes or a
comment is now considered a format and not a comment, so #{ is now a
syntax error (notably, if it is at the start of a line).

This also adds two new sections to the man page documenting the syntax
and outlining how parsing and command execution works.

Thanks to everyone who sent me test configs (they still all parse
without errors - but this doesn't mean they still work as intended!).

Thanks to Avi Halachmi for testing and man page improvements, also to
jmc@ for reviewing the man page changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
parser using yacc(1). This is a major change but is clearer and simpler
and allows some edge cases to be made more consistent, as well as
tidying up how aliases are handled. It will also allow some further
improvements later.

Entirely the same parser is now used for parsing the configuration file
and for string commands. This means that constructs previously only
available in .tmux.conf, such as %if, can now be used in string commands
(for example, those given to if-shell - not commands invoked from the
shell, they are still parsed by the shell itself).

The only syntax change I am aware of is that #{} outside quotes or a
comment is now considered a format and not a comment, so #{ is now a
syntax error (notably, if it is at the start of a line).

This also adds two new sections to the man page documenting the syntax
and outlining how parsing and command execution works.

Thanks to everyone who sent me test configs (they still all parse
without errors - but this doesn't mean they still work as intended!).

Thanks to Avi Halachmi for testing and man page improvements, also to
jmc@ for reviewing the man page changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge hooks into options and make each one an array option. This allows</title>
<updated>2019-04-26T11:38:51+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2019-04-26T11:38:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=dfb7bb683057d08303955c49073f4b475bd0e2d6'/>
<id>dfb7bb683057d08303955c49073f4b475bd0e2d6</id>
<content type='text'>
multiple commands to be easily bound to one hook. set-hook and
show-hooks remain but they are now variants of set-option and
show-options. show-options now has a -H flag to show hooks (by default
they are not shown).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
multiple commands to be easily bound to one hook. set-hook and
show-hooks remain but they are now variants of set-option and
show-options. show-options now has a -H flag to show hooks (by default
they are not shown).
</pre>
</div>
</content>
</entry>
<entry>
<title>Expand \u and \U escape sequences in command strings, from Christopher</title>
<updated>2018-08-19T19:03:46+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2018-08-19T19:03:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=d95fad3d5f945c8047cd35de65cf59c60499f306'/>
<id>d95fad3d5f945c8047cd35de65cf59c60499f306</id>
<content type='text'>
Hunt in GitHub issue 1443.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hunt in GitHub issue 1443.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't overwrite error message when it is available in</title>
<updated>2017-06-14T07:42:41+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2017-06-14T07:42:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=af93453190c2fbb207c8541df33314160816985f'/>
<id>af93453190c2fbb207c8541df33314160816985f</id>
<content type='text'>
cmd_string_parse. Reported by Jimi Damon in GitHub issue 975.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cmd_string_parse. Reported by Jimi Damon in GitHub issue 975.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for custom command aliases, this is an array option which</title>
<updated>2017-01-24T19:53:37+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2017-01-24T19:53:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=85338bb75fa4fbabfdbefeb995bdea04efaf2db4'/>
<id>85338bb75fa4fbabfdbefeb995bdea04efaf2db4</id>
<content type='text'>
contains items of the form "alias=command". This is consulted when an
unknown command is parsed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
contains items of the form "alias=command". This is consulted when an
unknown command is parsed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert WIP parts of previous I didn't mean to commit yet.</title>
<updated>2017-01-16T14:52:25+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2017-01-16T14:52:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=ef15b4195f1453bf6f81cfd1e456c049922aa574'/>
<id>ef15b4195f1453bf6f81cfd1e456c049922aa574</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>getopt() has a struct option so just return to using options_entry.</title>
<updated>2017-01-16T14:49:14+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2017-01-16T14:49:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=68db9584777fd40f6100e7944992a021f6e40c71'/>
<id>68db9584777fd40f6100e7944992a021f6e40c71</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>It is silly for cmd_list_parse to return an integer error when it could</title>
<updated>2017-01-15T22:00:56+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2017-01-15T22:00:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=52847a951802fda7a3ce36cdac77c34914b0ccca'/>
<id>52847a951802fda7a3ce36cdac77c34914b0ccca</id>
<content type='text'>
just return NULL.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
just return NULL.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.</title>
<updated>2016-10-14T22:14:22+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2016-10-14T22:14:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=ed971268be7cfd5a4a8223211401654b30a57cbd'/>
<id>ed971268be7cfd5a4a8223211401654b30a57cbd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add static in cmd-* and fix a few other nits.</title>
<updated>2016-10-10T21:51:39+00:00</updated>
<author>
<name>nicm</name>
<email>nicm</email>
</author>
<published>2016-10-10T21:51:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rtmux.git/commit/?id=a81685bfac9d4eac3a7cfd8f8ce13033a46fe01c'/>
<id>a81685bfac9d4eac3a7cfd8f8ce13033a46fe01c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
