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

Allow using / in session name #2885

Open
noverby opened this issue Oct 21, 2023 · 3 comments
Open

Allow using / in session name #2885

noverby opened this issue Oct 21, 2023 · 3 comments

Comments

@noverby
Copy link

noverby commented Oct 21, 2023

I'm currently trying to migrate from tmux to zellij, but I have noticed that zellij does not support / in the session name like tmux.

My use case is to apply the current working directory as the session name.

@karlovsek
Copy link

karlovsek commented Oct 24, 2023

If nothing else, I think that this could be a problem from #2801

The default session cache location for linux machines: ~/.cache/zellij/<ZELLIJ_VERSION>/session_info/<SESSION_NAME>/session-layout.kdl

So, <SESSION_NAME> is used as folder name.

Apparently, there are also some issues with the length of the session name #2591, which I guess can easily be exceeded by working directory paths.

Or maybe you could replace all / with \, and limit to last, say 100 chars?
For example

alias zwd="zellij --session \$(echo \$(pwd) | sed 's/\\//\\\\/g') | tail -c100"

@sommerper
Copy link

This was also mentioned here: #2171 but I would say it's just a minor inconvenience...

@noverby
Copy link
Author

noverby commented Oct 25, 2023

I know how to work around this, but it still is a feature that is supported in tmux, so I will keep the issue open.

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