Skip to content
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

Add --alive option for ls #3168

Open
Odilf opened this issue Feb 28, 2024 · 1 comment · May be fixed by #3510
Open

Add --alive option for ls #3168

Odilf opened this issue Feb 28, 2024 · 1 comment · May be fixed by #3510
Labels
enhancement New feature or request

Comments

@Odilf
Copy link

Odilf commented Feb 28, 2024

Currently the ls subcommand always prints all sessions, both active and exited. I suggest adding a --alive flag that only shows sessions that are alive. The name should probably be bikeshedded. Some other options:

  • --only-alive
  • --active
  • --only-active
  • --hide-dead
  • --hide-exited
  • --show-dead/exited=false
  • etc

This would add to the two existing flags: --no-formatting and --short.

My specific use case is that I've set up ssh to show a list of active sessions, but I want it to be nice and short and I really don't care about dead sessions. In general it's a nice option that I think a lot of people would expect to have.

I've looked through the code and it seems like a simple enough change. I would be more than glad to make a PR if it's something the maintainers agree with!

@jabir366
Copy link

jabir366 commented Mar 3, 2024

That is a nice feature to have, someone who comes from tmux or GNU screen experience, we wont expect all the dead sessions to see when we type zellij ls.

@jaeheonji jaeheonji added the enhancement New feature or request label Mar 7, 2024
@Odilf Odilf linked a pull request Jul 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants