Open theherk opened 6 days ago
Hey, this is mentioned in the breaking changes
part of the release notes. --layout
now works differently in and out of sessions. It either works on the current session if in one or starts a new session with this layout if not. --session
is there to tell it to work on a different existing session instead of the current one. I agree the word "new" should probably be dropped from the --help
of session.
The old behavior can be achieved, as you have found (but I'm writing here for others who might find this issue) with --new-session-with-layout
.
if the help text contradicts the behavior, that's definitely a bug, even if the fix is to change the help text
Here's the change log for anyone looking... to save them a few seconds 😅 https://github.com/zellij-org/zellij/releases#release-v0.41.0
The changes look absolutely EPIC! 🎉
Issue description
I generally use this script to start or connect to sessions:
Since upgrading to 0.41.1 I can no longer start new sessions this way. That is just what tipped me off, but the behavior can been seen more simply.
Minimal reproduction
zellij -l test -s test
.That's it. This now gives
There is no active session!
. You might say to usezellij --new-session-with-layout test -s test
, and that does work. However, that behavior is a bit confusing. The documentation for--session
saysSeems to me
There is no active session!
shouldn't be possible when using this option. Of course there isn't one; I asked to start one.I'm of course fine with using
-n
in lieu of-s
, but I'm a bit confused.