zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.42k stars 611 forks source link

Quit deletes session #3357

Open amirkhaki opened 1 month ago

amirkhaki commented 1 month ago

Issue description

Quitting a session results in session getting deleted and if you run zellij ls it doesn't show up

Minimal reproduction

zellij a -c mysession

then hit ctrl-q, run zellij ls and there is no session, changing ctrl-q keybinding to Detach works

Other relevant information

version 0.40.1

cristiand391 commented 1 month ago

I think that's the indented behavior. What did you expect Quitto do?

amirkhaki commented 1 month ago

According to the docs, it should be listed as EXITED and resurrected when attached

Zellij includes built-in session resurrection capabilities. This means that by default, each Zellij session is serialized and kept in the user's cache folder waiting to be recreated after an intentional quit or an unintentional crash. These exited resurrectable sessions can be listed through the CLI or the built-in session-manager. They can be resurrected through the CLI by attaching to them or through the session-manager by selecting them in the EXITED section

amirkhaki commented 1 month ago

@cristiand391 (Just to make sure you get notified)

cristiand391 commented 1 month ago

Ohh nvm,I see what you mean.

I don't have the context but if I had to guess it could be that the Quit action has been available for quite some time (I see it in 2021 GH issues) and didn't get updated when session resurrection was added in Nov. 2023.

Let's see if someone else can say more about this. Remapping to Detach is a good workaround.