You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking into ways to IDEify my editor (hx) with Zellij #2835, #2795 and came across a behavior I believe is errant:
When you exit from zellij run through its intended means (via <Ctrl-c>/--close-on-exit), the $ZELLIJ_PANE_ID env variable does not get decremented as one would see from closing panes.
This behavior is also inconsistent with the documentation's description of zellij run:
-c, --close-on-exit ---- Close the pane immediately when its command exits
..<Ctrl-c> to close the pane.
I have not yet done enough code sleuthing but I believe the terminal_id's from which $ZELLIJ_PANE_ID is derived from is not being treated the same way when the run subshell is --close-on-exited vs. close-paneed.
ver: zellij 0.39.1
The text was updated successfully, but these errors were encountered:
Indeed a good find, thank you! While I will not mind a fix here - just know that this is what I'd consider undefined behavior. We can't promise to stay consistent on this one - rather we can only promise to give unique PANE_IDs to each pane.
I was looking into ways to IDEify my editor (
hx
) with Zellij #2835, #2795 and came across a behavior I believe is errant:When you exit from
zellij run
through its intended means (via<Ctrl-c>
/--close-on-exit
), the$ZELLIJ_PANE_ID
env variable does not get decremented as one would see from closing panes.This behavior is also inconsistent with the documentation's description of
zellij run
:I have not yet done enough code sleuthing but I believe the
terminal_id
's from which$ZELLIJ_PANE_ID
is derived from is not being treated the same way when the run subshell is--close-on-exit
ed vs.close-pane
ed.ver: zellij 0.39.1
The text was updated successfully, but these errors were encountered: