Terminator could offer a "New terminal with the current terminal's child" to clone SSH login terminals

Bug #267301 reported by Asheesh Laroia
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Terminator
Confirmed
Wishlist
Unassigned

Bug Description

I have a wishlist suggestion that I think would be fairly easy to implement.

Right now, when you split the terminal, you get your login shell in the working directory of the terminal you are in currently.

Many of the terminals I use are SSH terminals to a remote machine. It would be great if Terminator could inspect the child process of the login shell and offer me an option to clone *that child* (that is, run the same command with the same arguments) into the new terminal. That way, I could with one (gigantic?) keystroke split the screen in half and start a new SSH to the same machine.

Revision history for this message
Asheesh Laroia (paulproteus) wrote :

Now that I think about this, I would use it for non-SSH things too. For example, one of the most common programs I run in Terminator is alpine; it would be great to be able to split the screen with a single keystroke and get another one.

Chris Jones (cmsj)
Changed in terminator:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Chris Jones (cmsj) wrote :

One obvious problem with this is that the child of the terminal is your shell. We'd need to be inspecting grandchildren, which seems like it could easily fail.

Revision history for this message
Nicolas Roman (nicolasr) wrote :

The branch I opened today could be a solution to this bug. It allows to clone a terminal when splitting. So if the first terminal was opened with -e or -x option, the command is run again at split time.

the branch is : https://code.launchpad.net/~nicolasr/terminator/clonable

Revision history for this message
Chris Jones (cmsj) wrote :

As I think I mentioned on the branch that Nicolas created, Terminator's development code now supports plugins, so this should be significantly easlier to arrange, and doesn't require core changes :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.