<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cristobal Dabed</title>
    <description>The latest articles on DEV Community by Cristobal Dabed (@cristobal).</description>
    <link>https://dev.to/cristobal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1067210%2Fd4079b9a-6309-4cea-a794-8e2d421f47af.jpeg</url>
      <title>DEV Community: Cristobal Dabed</title>
      <link>https://dev.to/cristobal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cristobal"/>
    <language>en</language>
    <item>
      <title>Ghostty + Zellij 👻 setup on Mac</title>
      <dc:creator>Cristobal Dabed</dc:creator>
      <pubDate>Sun, 09 Nov 2025 18:40:23 +0000</pubDate>
      <link>https://dev.to/cristobal/ghostty-zellij-setup-on-mac-11la</link>
      <guid>https://dev.to/cristobal/ghostty-zellij-setup-on-mac-11la</guid>
      <description>&lt;p&gt;So i have been using &lt;a href="https://ghostty.org/" rel="noopener noreferrer"&gt;Ghostty&lt;/a&gt; with &lt;a href="https://zellij.dev/" rel="noopener noreferrer"&gt;Zellij&lt;/a&gt; on macOS for a while, as my favourite goto terminal and workspace.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4kud0rzlcqddq1jy2ac4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4kud0rzlcqddq1jy2ac4.png" alt="Picture of Zellij Workspace in Ghostty Terminal on Mac" width="800" height="329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem
&lt;/h2&gt;

&lt;p&gt;However, some things have been bothering me for a while that I couldn't sort out until now:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Option key on macOS wasn't being interpreted as Alt correctly in the terminal&lt;/li&gt;
&lt;li&gt;Jumping forward a word with &lt;code&gt;Option+Right&lt;/code&gt; would trigger Zellij's &lt;a href="https://zellij.dev/tutorials/stacked-resize/" rel="noopener noreferrer"&gt;floating pane&lt;/a&gt; toggle instead&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/zellij-org/zellij/discussions/3079" rel="noopener noreferrer"&gt;Reordering tabs&lt;/a&gt; with Alt+i and Alt+o did not work as expected&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This happens because macOS terminals convert &lt;code&gt;Option+Right&lt;/code&gt; to &lt;code&gt;Alt+f&lt;/code&gt; (for "forward word" navigation), which conflicts with Zellij's &lt;code&gt;Alt+f&lt;/code&gt; floating pane keybinding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Solution
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Configuring Ghostty to treat Option as Alt
&lt;/h3&gt;

&lt;p&gt;Set the &lt;a href="https://ghostty.org/docs/config/reference#macos-option-as-alt" rel="noopener noreferrer"&gt;macos-option-as-alt&lt;/a&gt; option in your &lt;a href="https://ghostty.org/docs/config/reference" rel="noopener noreferrer"&gt;Ghostty config&lt;/a&gt; e.g.:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="c"&gt;# Enable Option key as Alt for keybindings
# Use 'left' so right Option key can still type special characters
&lt;/span&gt;&lt;span class="n"&gt;macos&lt;/span&gt;-&lt;span class="n"&gt;option&lt;/span&gt;-&lt;span class="n"&gt;as&lt;/span&gt;-&lt;span class="n"&gt;alt&lt;/span&gt; = &lt;span class="n"&gt;left&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This lets us use the left Option key as Alt for Zellij keybindings, while the right Option key can still type special characters (&lt;code&gt;'&lt;/code&gt;,&lt;code&gt;~&lt;/code&gt;, &lt;code&gt;|&lt;/code&gt;, etc.).&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Rebinding the floating pane shortcut
&lt;/h3&gt;

&lt;p&gt;Since &lt;code&gt;Option+Right&lt;/code&gt; still is interpreted as &lt;code&gt;Alt+f&lt;/code&gt; by the terminal, we need to change Zellij's floating pane keybinding. This can be changed in your &lt;a href="https://zellij.dev/documentation/configuration.html" rel="noopener noreferrer"&gt;Zellij config&lt;/a&gt; e.g.:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bind "Alt Shift f" { ToggleFloatingPanes; }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Hope this helps you out, if you have been struggling with the same issues like i did 👋&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>ghostty</category>
      <category>zellij</category>
      <category>mac</category>
      <category>dev</category>
    </item>
  </channel>
</rss>
