Open sonofviking opened 3 weeks ago
Zellij doesn't have and doesn't aim to implement switching commands so you need to implement such plugin. (I remember the maintainer said it is the role of plugin system)
I wrote that for my own. (sessionizer too btw) https://github.com/Peeeaje/zellij-switch-session
Issue description
I am trying to write a script that opens zellij inside of a certain project, setting the name of the session to that project (folder). Whenever I try to run
zellij attach
inside of another zellij session, it opens that attached within the session instead of replacing it.To go back to the original session I'd have to kill the attached session as attaching to the original would glitch out zellij
Minimal reproduction
This is what should happen to the status-bar (I have the compact-bar configured).
To show what happens when trying to reattach to the 'current' session.
Note that this is the entire vertical of my monitor, rendering the zellij session useless.
Other relevant information
zellij version:
0.40.1
The session I was trying to write (akin to ThePrimeagen's sessionizer script)