Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
---

Sent from sourceforge.net because tmux-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/tmux/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/tmux/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
--===============0957421593348247652==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/tmux/tickets/159">[tickets:#159]</a> tmux list-windows looses layout information if pane is maximized</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Created:</strong> Tue Sep 30, 2014 09:25 AM UTC by Azrael3000<br />
<strong>Last Updated:</strong> Tue Sep 30, 2014 09:25 AM UTC<br />
<strong>Owner:</strong> nobody</p>
<p>Tmux-resurrect apparently has a problem with restoring the layout if a pane was maximized. See the bug report here:</p>
<p><a href="https://github.com/tmux-plugins/tmux-resurrect/issues/47" rel="nofollow">https://github.com/tmux-plugins/tmux-resurrect/issues/47</a></p>
<p>As tmux list-windows is used in that plugin the following output is from a normal two plane window:</p>
<div class="codehilite"><pre><span class="mi">7</span><span class="o">:</span> <span class="n">user</span><span class="err">@</span><span class="n">host</span><span class="o">:~*</span> <span class="o">(</span><span class="mi">2</span> <span class="n">panes</span><span class="o">)</span> <span class="o">[</span><span class="mi">211</span><span class="n">x61</span><span class="o">]</span> <span class="o">[</span><span class="n">layout</span> <span class="n">e740</span><span class="o">,</span><span class="mi">211</span><span class="n">x61</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">0</span><span class="o">[</span><span class="mi">211</span><span class="n">x30</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">16</span><span class="o">,</span><span class="mi">211</span><span class="n">x30</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">31</span><span class="o">,</span><span class="mi">17</span><span class="o">]]</span> <span class="err">@</span><span class="mi">7</span> <span class="o">(</span><span class="n">active</span><span class="o">)</span>
</pre></div>
<p>If one pane is maximized the output is:</p>
<div class="codehilite"><pre><span class="mi">7</span><span class="o">:</span> <span class="n">user</span><span class="err">@</span><span class="n">host</span><span class="o">:~*</span><span class="n">Z</span> <span class="o">(</span><span class="mi">2</span> <span class="n">panes</span><span class="o">)</span> <span class="o">[</span><span class="mi">211</span><span class="n">x61</span><span class="o">]</span> <span class="o">[</span><span class="n">layout</span> <span class="mi">59</span><span class="n">e6</span><span class="o">,</span><span class="mi">211</span><span class="n">x61</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">17</span><span class="o">]</span> <span class="err">@</span><span class="mi">7</span> <span class="o">(</span><span class="n">active</span><span class="o">)</span>
</pre></div>
<p>This shows that while the Z flag is set, the layout is that of the single pane. I understand why it is the case but it looses the information of the normal window layout.</p>
<p>I suppose that it should be possible to keep the normal layout information so that the maximized pane results in the following output:</p>
<div class="codehilite"><pre><span class="mi">7</span><span class="o">:</span> <span class="n">user</span><span class="err">@</span><span class="n">host</span><span class="o">:~*</span><span class="n">Z</span> <span class="o">(</span><span class="mi">2</span> <span class="n">panes</span><span class="o">)</span> <span class="o">[</span><span class="mi">211</span><span class="n">x61</span><span class="o">]</span> <span class="o">[</span><span class="n">layout</span> <span class="n">e740</span><span class="o">,</span><span class="mi">211</span><span class="n">x61</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">0</span><span class="o">[</span><span class="mi">211</span><span class="n">x30</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">16</span><span class="o">,</span><span class="mi">211</span><span class="n">x30</span><span class="o">,</span><span class="mi">0</span><span class="o">,</span><span class="mi">31</span><span class="o">,</span><span class="mi">17</span><span class="o">]]</span> <span class="err">@</span><span class="mi">7</span> <span class="o">(</span><span class="n">active</span><span class="o">)</span>
</pre></div>
<p>i.e. just adds the Z flag.

Loading...