zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.42k stars 611 forks source link

zellij action rename-tab #3359

Closed n8henrie closed 1 month ago

n8henrie commented 1 month ago

Issue description

Sorry for the premature submission -- fatfinger.

I'm trying to rename a tab from within zellij, but it's telling me I don't have an active session for some reason.

The docs make it seem like this should work: https://zellij.dev/documentation/cli-actions.html#rename-tab

Am I doing something wrong?

Minimal reproduction

$ sw_vers
ProductName:            macOS
ProductVersion:         14.4.1
BuildVersion:           23E224
$ zellij --version
zellij 0.40.1
$ zellij action rename-tab foo
There is no active session!

Other relevant information

Screenshot 2024-05-17 at 16 56 29
imsnif commented 1 month ago

What are you getting with echo $ZELLIJ_SESSION_NAME?

n8henrie commented 1 month ago
$ zellij action rename-tab foo
There is no active session!
$ echo $ZELLIJ_SESSION_NAME
main
n8henrie commented 1 month ago

Hmm, also other commands:

$ zellij plugin -- file:~/.config/zellij/plugins/room.wasm
There is no active session!
n8henrie commented 1 month ago

Hmmm, detaching from the session and restarting the session seems to have resolved the issue (I can now rename tabs).

Unfortunately it also lost all my carefully named and organized tabs (trying to migrate from tmux). My named main session appears nowhere in the session manager (including the Resurrect Session tab). No idea what happened there.

Zykino commented 1 month ago

Maybe you started your session in 0.40.0 and then upgraded to 0.40.1? Zellij cannot upgrade session from one version to another.

n8henrie commented 1 month ago

That could be!