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

Add support for tmux Control Mode #3656

Open
zadjii-msft opened this issue Nov 21, 2019 · 19 comments
Open

Add support for tmux Control Mode #3656

zadjii-msft opened this issue Nov 21, 2019 · 19 comments
Labels
Area-Extensibility A feature that would ideally be fulfilled by us having an extension model. Area-Interop Communication between processes Area-User Interface Issues pertaining to the user interface of the Console or Terminal Help Wanted We encourage anyone to jump in on these. Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal.
Milestone

Comments

@zadjii-msft
Copy link
Member

zadjii-msft commented Nov 21, 2019

From discussion in #532, #1000:

If we're looking at tmux for things like splits, why not implement Tmux Control Mode like iTerm on MacOS. I switch back and forth between my Macs (with iTerm2) and my Surface Laptop with WSL but WSL2 combined with a really usable terminal (comparable to iTerm2) would really make me consider leaving the Apple camp.

In #532, from @zadjii-msft:

I did not know that Tmux Control Mode even existed. That sounds really awesome, I'm totally on board with trying to make that work somehow.

Was there any further thought put into this? I love tmux control mode - it's literally the only thing keeping me tethered to MacOS at work (since only iTerm supports it, and iTerm is mac-only). If it were implemented, I'd trash my Mac and request a Windows laptop immediately.

I'd love to see it listed as a post-1.0 milestone :)

We should do this.

Docs link: https://github.com/tmux/tmux/wiki/Control-Mode

@zadjii-msft zadjii-msft added Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Area-User Interface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. labels Nov 21, 2019
@zadjii-msft zadjii-msft added this to the Terminal Backlog milestone Nov 21, 2019
@ghost ghost added the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Nov 21, 2019
@DHowett-MSFT DHowett-MSFT added zInbox Bug and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Nov 21, 2019
@nicm
Copy link

nicm commented Nov 26, 2019

Control mode isn't documented all that well but it isn't terribly complicated, if you want to do it you can feel free to ask me if you have questions.

@DHowett-MSFT DHowett-MSFT added the Area-Interop Communication between processes label Nov 26, 2019
@DHowett-MSFT
Copy link
Contributor

@nicm Thanks! Maybe we can contribute a bit to the existence of control mode docs while we're at it. 😄

@nicm
Copy link

nicm commented Nov 26, 2019

That would be great. There is an overview in the manual and it is easy enough to play with interactively using "tmux -C new" (instead of -CC). Plus iTerm2 has an implementation of the client side of course.

@ArcticLight
Copy link

I was actually just looking at Tmux Control Mode for work (which led me to this issue from Google) - this would be something I would really support! That, and there are already library implementations which might help; as @nicm mentioned iTerm2 implements control mode, and also I found this python library https://libtmux.git-pull.com/en/latest/ which implements the control mode client, too.

@nicm
Copy link

nicm commented Dec 16, 2019

I don't think libtmux uses control mode.

@nicm
Copy link

nicm commented Jan 13, 2020

I have written a wiki entry about control mode, although it doesn't have an awful lot more than is in the manual at the moment. Still suggestions welcome - https://github.com/tmux/tmux/wiki/Control_Mode.

@muodov
Copy link

muodov commented Mar 17, 2020

I would love to have this feature - it's one of the crucial things I miss from my MacOS days.
For those who end up here - push that Like button above! Let's make ourselves heard, surely the product team will notice this! :D

@skyline75489
Copy link
Collaborator

I think this depends heavily on the remoting abiliby in #7240 & #8135. A tmux window will have to be a different one than the window that executes tmux -CC. And they must be able to communicate with each other.

@joexue
Copy link

joexue commented Nov 30, 2021

One thing that prevent me from moving from Mac to Windows is the iTerm tmux control mode

@skyline75489
Copy link
Collaborator

See also wez/wezterm#1090

@zadjii-msft zadjii-msft modified the milestones: Terminal Backlog, Backlog Jan 4, 2022
@skyline75489
Copy link
Collaborator

Update: part of this PR wez/wezterm#1090 has been merged into main branch. But I think on Windows the tmux-cc feature in wezterm is still blocked by ConPTY. Haven't got the chance to try it, though.

@DHowett DHowett removed the zInbox Bug label Feb 4, 2022
@jayPare
Copy link

jayPare commented Mar 31, 2022

This would be so helpful! Any update/progress?

@zadjii-msft zadjii-msft added the Help Wanted We encourage anyone to jump in on these. label Mar 31, 2022
@zadjii-msft
Copy link
Member Author

Nope. We'll make sure to update this thread when there is. In the meantime, might I recommend the Subscribe button?
image
That way you'll be notified of any updates to this thread, without needlessly pinging everyone on this thread ☺️

@joexue

This comment was marked as spam.

@nrclark
Copy link

nrclark commented Oct 15, 2022

+1 for tmux control mode!

This is implemented on iTerm2 for MacOS, and it's crazy magic that gives a native feeling to working with a remote server over SSH. It's also nice because sessions are persistent across disconnect/reconnect.

If Windows Terminal learned how to use control-mode, I'd switch my work computer over in an instant. And I don't think I'm the only one.

@shinebayar-g
Copy link

It'd make so much sense since Windows Terminal already supports split panes, it'd fit perfectly <3 please support this @microsoft

@BinaryShrub
Copy link

Any update on this? I use iterm2 exclusively because of this integration

@iDarshan
Copy link

iDarshan commented Mar 7, 2024

Any update on this? This is the most wanted feature!

@susanthenerd
Copy link

I would also like to see this happen. Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Extensibility A feature that would ideally be fulfilled by us having an extension model. Area-Interop Communication between processes Area-User Interface Issues pertaining to the user interface of the Console or Terminal Help Wanted We encourage anyone to jump in on these. Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests