Skip to content

Why switch_session() doesn't work? #3329

Answered by cristiand391
Andrew15-5 asked this question in Q&A
Discussion options

You must be logged in to vote

How do you nuke tho cache? My only guess is that somehow I didn't grant the permission, and it just don't work now.

on linux I run rm -rf $HOME/.cache/zellij. I think on macos is somewhere in ~/Library/Cache/zellij, I can confirm tomorrow.

Can I use those functions in any of the 3 callbacks, or only in the load/update?

I'm pretty sure in any of the 4 lifecycle methods (4th is the pipe one, documented in other section):
https://zellij.dev/documentation/plugin-lifecycle

But why do I have to wait if I just need to switch to another session? Or I can't until that info is available? If that's true, I think the switch wouldn't be instant... :/

Actually I don't think you would need to wait…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Andrew15-5
Comment options

@cristiand391
Comment options

@Andrew15-5
Comment options

@cristiand391
Comment options

Answer selected by Andrew15-5
@Andrew15-5
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants