-
-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zellij with --layout and --session no longer works #3734
Comments
Hey, this is mentioned in the The old behavior can be achieved, as you have found (but I'm writing here for others who might find this issue) with |
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 😅 The changes look absolutely EPIC! 🎉 |
Thanks for your work and releasing a new version. I hit this too. I had read this:
But "now behaves differently if run inside a Zellij session" - well I didn't care about that because I'm trying to start a session, so there is no session. The error/docs/release notes are confusing my small brain. FYI here's how I start zellij: basically, attach to a session called 'main', creating it if it doesn't exist. This is the new version with the new argument in place of function z
if zellij ls -n &| grep -E '^main .*EXITED' >/dev/null
zellij delete-session main # delete dead session
end
if zellij ls -n &| grep -E '^main ' >/dev/null
zellij attach main
else
# We don't have a main session yet
zellij --session main --new-session-with-layout mine
end
end |
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.The text was updated successfully, but these errors were encountered: