-
Notifications
You must be signed in to change notification settings - Fork 259
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 plugin to clone ssh and container sessions when terminal is split #924
Add plugin to clone ssh and container sessions when terminal is split #924
Conversation
At first glance this looks like something that would be really great. I'm going to pull it down and play with it for a bit just to see how to use it, but I can't see any reason not to merge it. I'm very impressed that you were able to do this all within the plugin system. |
@mattrose thanks! let me know if you have any suggestions or improvements |
I'm getting this error when I try to clone with split.
and the prompt is just Maybe it's having trouble interpreting the ~ ? |
Nope, it's another VTE Deprecation. vte.get_text_range() starts returning null in 0.76, and you have to use the new as of 0.72 vte.get_text_range_format(), call. |
Either way, I'm keeping this, this is a great feature, coded very well, thank you. |
Ahh good catch! You can go ahead and patch it if you feel up to it. When I get back home tonight I can fix it also |
easier if you do it, then you can just push the new changes to your branch and they should get automatically added to the PR. |
@mattrose just pushed the patch. It will check if vte >= 0.72 and call Let me know what you think! |
That patch looks great, pulling it in now. |
Remote Plugin
A Terminator plugin which adds features for ssh and docker/podman to the context menu.
Self contained and only relies on
psutil
.From the terminator docs online
Clone Horizontally/Vertically
This will clone your current SSH/container session into a newly spawned terminal
Heavily inspired by terminator_plugins which is no longer maintained. My version doesn't need to subclass
Terminal
and only needsvte.feed_child
Profile Host Matching
When you clone a remote session, you can apply a terminator profile based on host or container name
Inspired by TerminatorHostWatch which does this via regex matching a PS1. Instead of using a regex my version uses the process info provided via psutil
Configuration
Plugin section in
~/.config/terminator/config
: