Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
59.36k stars 3.39k forks source link

Being able to switch Profile group of a currently open SSH terminal window on the fly #9895

Open slanglade opened 2 months ago

slanglade commented 2 months ago

Is your feature request related to a problem? Please describe. I can't change the profile group of a currently open SSH terminal window.

Describe the solution you'd like In the right menu context, or in the tool menu (where sftp is placed), having a way to select another profile for the current window. The connection would then be moved from it's original profile group to the new one. Color scheme would then be automatically updated to the one configured in the newly assigned profile group configuration.

Describe alternatives you've considered n.a.

Additional context I'm working with lots of servers (in a huge company), with some of them being indus or production ones. I want to be able to quickly set their profile group once connected, as I don't have an exaustive list and as I'm connecting to new server on the fly each day. This way, I can identify and keep being alert of where I am (red background color for production, in my case), next time I'm connecting to it.

slanglade commented 1 month ago

Hi @Eugeny, I auto-up this feature, sorry if it's a bit cavalier to do this. Now that the background color of the color theme is forced in the terminal screen (huge thanks for this one !), is it possible to add this in your "near-term" backlog ?

slanglade commented 1 month ago

I modified this request, to switch to a more useful way of achieving what I really need. That is, instead of just attributing a new color scheme to the current connection, move the connexion to a new profile. This way, it will also inherit other settings of the profile, instead of just the color scheme.

Eugeny commented 1 month ago

FYI you can already do this with split tabs - once you're in a split, you can right click > Switch profile or use Switch profile from the command palette

slanglade commented 1 month ago

Ah thank you @Eugeny , I see what you mean. In fact, this could cover my needs if a selector is added in the "Switch profile" widget to give the profile group at the same time. And a refresh of the tab in order to take into account the color theme. Do you think its doable ? I update the description of this issue to reflect this.