Skip to content

feat(cable): add zellij-sessions channel#1032

Open
Vexo413 wants to merge 1 commit intoalexpasmantier:mainfrom
Vexo413:zellij-sessions
Open

feat(cable): add zellij-sessions channel#1032
Vexo413 wants to merge 1 commit intoalexpasmantier:mainfrom
Vexo413:zellij-sessions

Conversation

@Vexo413
Copy link
Copy Markdown

@Vexo413 Vexo413 commented Apr 10, 2026

📺 PR Description

Add a zellij-sessions channel for searching through the Zellij multiplexer's sessions, similar to the tmux-sessions channel.

Checklist

  • my commits and PR title follow the conventional commits format
  • if this is a new feature, I have added tests to consolidate the feature and prevent regressions
  • if this is a bug fix, I have added a test that reproduces the bug (if applicable)
  • I have added a reasonable amount of documentation to the code where appropriate

requirements = ["zellij"]

[source]
command = "zellij list-sessions | sed 's/\\x1b\\[[0-9;]*m//g'"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like this is trying to strip ansi escape codes from zellij's output.

Reading zellij's code (couldn't find anything in the docs for some reason), it seems they have a --no-formatting option you could use to avoid having to do that.

and as a last resort if the above doesn't work you can also use display = "{strip_ansi}"

@alexpasmantier
Copy link
Copy Markdown
Owner

Thanks for the PR, looks mostly good to me except for that unnecessary sed expression I mentioned above.

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

Successfully merging this pull request may close these issues.

2 participants