gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.38k stars 293 forks source link

Feature request: maintain SSH on new session #2072

Open g00nix opened 2 years ago

g00nix commented 2 years ago

Currently folder are persistent when creating new tabs/sessions, meaning when you create a new session, you will land in the same folder. Is this behavior also possible for ssh connections? Let's say I am connected via ssh to example.com and I am currently in the folder /opt/example. When I create a new session, is it possible to automatically connect to example.com and to change the folder to /opt/example automatically?

I know similar behavior can be achieved just by opening tmux or byobu on the target system, but I would like to have hotkey consistency and that is very easily achieved if I use Tilix everywhere.

almson commented 2 years ago

What if user wants to open a local terminal? Use a different shortcut?

All you need to do to create a new panel with the same command as in your current panel is:

  1. Create panel
  2. Press up arrow
  3. Press enter

Possible alternate approach:

Create a Tilix profile which runs a script instead of a shell in new panels. That script can try to run the last command in your history, or simply ssh into a specific machine.