<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Lua on Jon Brown&#39;s Webpage</title>
    <link>/tags/lua/</link>
    <description>Recent content in Lua on Jon Brown&#39;s Webpage</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 16 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="/tags/lua/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Getting Started with Rex (Coming from tmux &#43; Neovim)</title>
      <link>/posts/rex-getting-started/</link>
      <pubDate>Fri, 16 Oct 2026 00:00:00 +0000</pubDate>
      
      <guid>/posts/rex-getting-started/</guid>
      <description>&lt;p&gt;&lt;strong&gt;FOREWORD:&lt;/strong&gt; I tried something a bit different with this post. Everything on
this page I wrote by hand. The main deliverable/artifact for this post is a
bunch of text I generated with my agent and quarantined in a separate file. You
can feed that file to your agent to bootstrap your &lt;code&gt;Rex&lt;/code&gt; config so that &lt;code&gt;Rex&lt;/code&gt;
behaves similarly to what you&amp;rsquo;d expect coming from &lt;code&gt;tmux&lt;/code&gt;. TL;DR: point your
agent &lt;a href=&#34;/posts/rex-getting-started/agents.txt&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
      <content>&lt;p&gt;&lt;strong&gt;FOREWORD:&lt;/strong&gt; I tried something a bit different with this post. Everything on
this page I wrote by hand. The main deliverable/artifact for this post is a
bunch of text I generated with my agent and quarantined in a separate file. You
can feed that file to your agent to bootstrap your &lt;code&gt;Rex&lt;/code&gt; config so that &lt;code&gt;Rex&lt;/code&gt;
behaves similarly to what you&amp;rsquo;d expect coming from &lt;code&gt;tmux&lt;/code&gt;. TL;DR: point your
agent &lt;a href=&#34;/posts/rex-getting-started/agents.txt&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve been following the &lt;a href=&#34;https://www.superlogical.com&#34;&gt;Superlogical&lt;/a&gt; stuff and
got notified about &lt;code&gt;Rex&lt;/code&gt; early access. &lt;code&gt;Rex&lt;/code&gt; is a terminal multiplexer. Or, I
guess it&amp;rsquo;s supposed to be a multiplexer for&amp;hellip;everything? I dunno, but it seems
cool and the creators produce excellent software so I was interested. I tried
&lt;code&gt;herdr&lt;/code&gt; and didn&amp;rsquo;t love it. &lt;code&gt;Rex&lt;/code&gt;&amp;hellip;I think I love, in no small part because it
seems to just get out of the way, which is awesome.&lt;/p&gt;
&lt;p&gt;The only apprehension I had was that I&amp;rsquo;ve got all this &lt;code&gt;tmux&lt;/code&gt; muscle memory I
worked hard for. Split panes, zoom, move around, and getting it all to play
nicely with &lt;code&gt;nvim&lt;/code&gt; (we all watched those typecraft videos, I&amp;rsquo;m sure). The point
of this post is to tell your agents how to quickly set up your &lt;code&gt;Rex&lt;/code&gt; config so
that it &lt;em&gt;mostly&lt;/em&gt; matches that sort of &lt;code&gt;tmux&lt;/code&gt; config you&amp;rsquo;ve grown accustomed to.
If this is something you &lt;em&gt;actually&lt;/em&gt; care about, I&amp;rsquo;m sure your keys differ from
mine and you&amp;rsquo;ve already had your agent get yours sorted out. This is really for
those people who might not know that you can in fact configure &lt;code&gt;Rex&lt;/code&gt; in this way
and that it&amp;rsquo;s pretty trivial to have your favorite harness get you 99% of the
way there.&lt;/p&gt;
&lt;h2 id=&#34;goals&#34;&gt;Goals&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Pane Navigation. First and foremost, I want to be able to move between panes
with &lt;code&gt;ctrl+h/j/k/l&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Leader Keys. Session creation/switching/killing, pane splitting/killing, and
pane zooming. &lt;code&gt;Rex&lt;/code&gt; has buttons for this, but I don&amp;rsquo;t wanna leave the
keyboard. Also, most of these are &lt;code&gt;tmux&lt;/code&gt; leader-key shortcuts (at least for
me).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy Mode. Due to the way &lt;code&gt;tmux&lt;/code&gt; highlighting works with visual mode, I&amp;rsquo;ve
had to learn this weird pattern where I &lt;code&gt;&amp;lt;leader&amp;gt;[&lt;/code&gt; and then visually
select/yank. With &lt;code&gt;Rex&lt;/code&gt; I can get similar functionality by mapping
&lt;code&gt;&amp;lt;leader&amp;gt;[&lt;/code&gt; to something like &lt;code&gt;rex capture -b &amp;lt;block&amp;gt; --unwrap | nvim -&lt;/code&gt; (it
opens your pane contents in a temp file in &lt;code&gt;nvim&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;what-now&#34;&gt;What now?&lt;/h2&gt;
&lt;p&gt;That&amp;rsquo;s all for now! Point your agent at the text file I linked above and go be
productive! I have some really cool ideas that&amp;rsquo;ll be more relevant once &lt;code&gt;Rex&lt;/code&gt;
ships a Linux server. Until then, happy tinkering!&lt;/p&gt;
</content>
    </item>
    
  </channel>
</rss>
