Merijn Verstraaten
2014-10-29 07:09:26 UTC
Ola,
One of my age long pet peeves has been the poor integration between my local tmux environment and tmux sessions running on servers, such as having no shared clipboard, the annoyance of needing to different prefixes for nested sessions, etc.
Recently I've been thinking a bit about how to fix this in a satisfactory way. An obvious solution (to my naïve eyes) seems to be to allow a tmux-client to connect to multiple servers. Allowing the user to list the sessions of *all* connected clients and select them.
From a user-perspective I would want "tmux choose-tree" to list all sessions from all servers (labeled with the relevant server) and all their windows and transparently switch between them. I'd want to have access to the same copy/paste buffers.
Potential problems I see:
- Windows can be shared between sessions, but it makes no sense to share windows between sessions on different machines.
- Are copy/paste buffers currently per client, per session or per server? If the latter two, the client needs to somehow unify these multiple sets of buffers
This email is mostly meant to ask for opinions/sanity check before I sink any non-trivial amount of time into exploring the code/hacking. Is this a stupid idea? Is the idea ok, but does it not fit the current tmux design without a lot of work? Any problems I missed? Suggestions for resolving the above mentioned problems? Any odds of working code for this getting merged back into tmux?
Cheers,
Merijn
------------------------------------------------------------------------------
One of my age long pet peeves has been the poor integration between my local tmux environment and tmux sessions running on servers, such as having no shared clipboard, the annoyance of needing to different prefixes for nested sessions, etc.
Recently I've been thinking a bit about how to fix this in a satisfactory way. An obvious solution (to my naïve eyes) seems to be to allow a tmux-client to connect to multiple servers. Allowing the user to list the sessions of *all* connected clients and select them.
From a user-perspective I would want "tmux choose-tree" to list all sessions from all servers (labeled with the relevant server) and all their windows and transparently switch between them. I'd want to have access to the same copy/paste buffers.
Potential problems I see:
- Windows can be shared between sessions, but it makes no sense to share windows between sessions on different machines.
- Are copy/paste buffers currently per client, per session or per server? If the latter two, the client needs to somehow unify these multiple sets of buffers
This email is mostly meant to ask for opinions/sanity check before I sink any non-trivial amount of time into exploring the code/hacking. Is this a stupid idea? Is the idea ok, but does it not fit the current tmux design without a lot of work? Any problems I missed? Suggestions for resolving the above mentioned problems? Any odds of working code for this getting merged back into tmux?
Cheers,
Merijn
------------------------------------------------------------------------------