Opening new tab or window should use original command Console was launched with
Use case
I am on Fedora Silverblue and I have the following command for launching a terminal tab that goes directly into an Ubuntu terminal using the fish shell:
kgx --command "distrobox-enter --name ubuntu-22.04 -- fish"
This works great when I first launch the terminal (via a shortcut I’ve set up for CtrlAltu).
Now I’m working away and I want to open up a different tab (say to keep working after I started a long-running process in the current tab). I press CtrlShiftt to open a new tab.
What should happen
A tab should open in my current directory under distrobox running ubuntu 22.04 and my fish shell (in other words, I should find myself exactly where I was in the previous tab).
What actually happens
A core Fedora Silverblue terminal opens in bash (the default shell for Fedora Silverblue) in the last directory that that terminal was in.
This is very jarring and breaks my flow as I then have to either manually enter distrobox and to the directory I was in or launch another instance of Console via the keyboard shortcut as a separate window. If I then want that window to be grouped with my existing one, I have to create a new tab (so the tabs show) and then drag the tab I want to my current window and then close the second window.
Suggested implementation
If Console was launched with a custom command and shell, use that when opening a new tab or window from within Console.
Alternatively, make this an option that can be set in the preferences. (As of Beta 1, it looks like this would actually require creating a Preferences view, which I don’t think is unwarranted complexity for a terminal app. See #136 (closed))