-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Add support for tmux control mode (#3656) #18928
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
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@microsoft-github-policy-service agree |
whoa |
This is a long-awaited feature! Thanks @joexue! |
FYI: I am working with reduced staffing at the moment, so reviews may be slow to come. I apologize for that. |
Is there a nightly build with this PR to test? |
Your best bet is to build this locally. Once it merges, it will be available on the Canary channel though. |
I tried to find the build guide, but couldn't find one. Do you have the link handy? |
README.md ->Developer Guidance @iDarshan |
Hi @joexue! Thanks for doing this! I published a build for the team to test internally and we've got a few notes we want to share with you 😊
Overall, this is a really exciting feature and we're excited to see it land! Let us know if you need any guidance or additional comments on any of the thoughts above. 😊 |
Scrollbars are gone is by design, I put the comment in the code, since we want to make local panes size match remote(tmux) panes size, but each split, tmux just lost 1 character to use it as separator, if we have side scrollbars, we cannot make two side's size match. To meet this, the padding size is changed too. As the menu, it is because I tried to touch as less code as I can to do the job. So give the tmux a separate UI system. I described in the PR, this could be improved and should integrated into the present UI/menu system.
I did not see this bug, to help me to reproduce it here, could you describe your env? how do you connect to tmux server? what is the tmux version?
Sure, let me fix it.
Sure, let me look it.
This is by design, remote pane should close by quit it's app. but this is arguable, if we think close local pane should close remote pane too, it is easy and feasible.
Sure. Fair enough.
Please provide the idea, I can try to implement it.
Thanks! Since this PR is a bit big, another option is we split it into two or three parts to make it easy to review and integrate. Such as What do you think, split it or just keep as it is? |
@carlos-zamora @DHowett @lhecker @zadjii-msft Thanks |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Address comments round 1 1 typo fix 2 add the feature for tmux control 3 add the configuration for tmux control 4 change to use present menu/ui/action for tmux control 5 disable draging the tmux control tab 6 close backend panes/windows if close panes/tabs locally 7 fix the bug that cannot input after split the pane
Summary of the Pull Request
Let WT supports tmux control mode
References and Relevant Issues
#3656
Detailed Description of the Pull Request / Additional comments
Support:
Create/attach tmux session
Split pane vertical/horizontal
Window/panes size change
Remove pane/tab if remote pane exit or window exit
Improvements may do:
Tested by using tmux 3.4:
ssh to a machine has tmux or use wsl, then run
"tmux -CC" or "tmux -CC a"
Validation Steps Performed
PR Checklist
tmux
Control Mode #3656