alex35mil / dotfiles

My dotfiles
229 stars 10 forks source link

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

Closed robrecord closed 5 months ago

robrecord commented 11 months ago

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 commented 11 months ago
Screenshot 2023-10-13 at 16 53 01
robrecord commented 11 months ago
Screenshot 2023-10-13 at 16 54 18
alex35mil commented 10 months ago

@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 commented 10 months ago

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 commented 10 months ago

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 commented 7 months ago

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 commented 5 months ago

@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 commented 5 months ago

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.