alex35mil / dotfiles

My dotfiles
230 stars 10 forks source link

zellij-runner - Switch session if already inside zellij #4

Closed eirabben closed 1 year ago

eirabben commented 1 year ago

Hi

Right now, if I run the zellij-runner inside a zellij session, it opens a nested session.

Is there any way to detect whether we are already inside zellij, and switch sessions instead of nesting?

alex35mil commented 1 year ago

Hi @eirabben, I'm not sure regarding nesting detection—I don't think it is possible off the top of my head, but maybe I'm wrong, and Zellij exposes some handle. And it is 100% impossible to switch instead of to nest without a manager process running somewhere.

eirabben commented 1 year ago

Ok, thank you for your quick reply.

Seems like this kind of functionality would have to be handled inside zellij directly.

Thank you for your time!

alex35mil commented 1 year ago

Yup, exactly.