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

ANSI output is garbled, need to run list-sessions with -n #6

Closed
robrecord opened this issue Oct 13, 2023 · 8 comments
Closed

ANSI output is garbled, need to run list-sessions with -n #6

robrecord opened this issue Oct 13, 2023 · 8 comments

Comments

@robrecord
Copy link

robrecord commented Oct 13, 2023

https://github.com/alex35mil/dotfiles/blob/483f7ad7c69a9ef0f24468d11b4aca4db0d0f75d/bin/zellij/runner/src/zellij.rs#L11C54-L11C54

New versions of zellij come with colourized output of list-sessions by default, which appeared messed up in zellij-runner's list of sessions. Additionally extra session information is added to the end of each item.

Consequently the session attach does not work.

A workaround would be to add -n to the list-sessions command, and then separate the session information from the session name.

EDIT: a new flag, -s or --short, has been added to the list-sessions command to output session names pristinely for easy parsing.

@robrecord
Copy link
Author

Screenshot 2023-10-13 at 16 53 01

@robrecord
Copy link
Author

Screenshot 2023-10-13 at 16 54 18

@alex35mil
Copy link
Owner

@robrecord Which version of zellij are you on? I'm on 0.38.2 (I think it's latest) and I don't see this issue.

@robrecord
Copy link
Author

robrecord commented Oct 22, 2023

Ah, my bad - I’m on a pre-release 0.39 compiled from the main branch… not sure how you’d make it compatible with both versions; might need a version check. I realise that’s possibly awkward.

@robrecord
Copy link
Author

robrecord commented Oct 22, 2023

In light of this not being released yet, perhaps we should wait until the functionality is settled as it could be subject to change.

@noirbizarre
Copy link

Zellij 0.39 being released, this issue is now existing with latest releases.
Is it possible to fix it ?
(BTW, your launcher is great and would gain to have a dedicated repository)

@alex35mil
Copy link
Owner

@robrecord @noirbizarre sorry for the delay. Too much on my plate right now. I will update it as soon as I have time. Can't break my workflow when I'm in the middle of the project.

@alex35mil
Copy link
Owner

alex35mil commented Apr 11, 2024

Should be fixed in 0.4.0. It would be cool to add a keymap to delete EXITED sessions from the main screen, but I don't have a bandwidth for it right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants