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

Feature Request: Resizing panes / sessions #2913

Open
rob-p opened this issue Nov 7, 2023 · 4 comments
Open

Feature Request: Resizing panes / sessions #2913

rob-p opened this issue Nov 7, 2023 · 4 comments

Comments

@rob-p
Copy link

rob-p commented Nov 7, 2023

First; thanks for the excellent tool!

One of the features that keeps me using tmux instead of fully switching over to zellij (whose user experience I generally prefer greatly) is the inability to resize panes between clients. That is, a common use case for me is to start a session on a server from my desktop at work, and then to later want to reconnect to that session from one of my laptops at home (or to move between my laptop with an external monitor setup and my "plain old" laptop). All of these have slightly different resolutions, and so pane sizes don't match up. In tmux, it's possible to resize the session to the currently active terminal (which may change the size on other terminals if they are open).

Would such a feature be possible in zellij? If so, how heavy of a lift is it? It would certainly be very useful to me, and perhaps others as well, to be able to resize sessions to fit the current client rather than the client from which they were originated.

@imsnif
Copy link
Member

imsnif commented Dec 4, 2023

Right now Zellij fits sessions to the client with the fewest columns/rows (or more accurately: fits its rows to the row count of the client with the fewest rows and its columns to the column count of the client with the fewest columns).

Since Zellij has true multiplayer support rather than just mirroring like tmux, I feel that providing an option to skew the display of one client (make it not fit their screen) would not be the best experience here.

How about allowing you to disconnect all or some of the other clients? Will that do the trick for you?

@rob-p
Copy link
Author

rob-p commented Dec 4, 2023

Hi @imsnif,

I think this would serve my use-case. I appreciate the actual multiplayer support that zellij provides, but I still mostly use it for persistent multiplexing currently. The most common situation is that I work on a session at work, and then want to continue at home (but without forgetting to disconnect my work terminal from the session). So, the ability to disconnect other terminals and then reconnect the current one (triggering a resize) would work here, I believe,

Thanks!
Rob

@imsnif
Copy link
Member

imsnif commented Apr 19, 2024

Hey @rob-p - starting from 0.40.0 you can detach other clients connected to the same session. More info here under "disconnect other clients": https://zellij.dev/news/welcome-screen-pipes-filepicker/

Does this solve your issue?

@QuantumBJump
Copy link

This is really good for me, although it would be nice if it was an option on zellij attach. Currently when I'm working from home I need to: ssh in, attach to zellij, open up the session manager, search for the name of the session, hit control+x to detach other sessions. it would be nice if there was some sort of zellij attach --exclusive which detached other connected sessions, although it might be better as a plugin (not sure if it's possible as a plugin, haven't looked yet) cause I could see it messing with the multiplayer functionality.

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