-
-
Notifications
You must be signed in to change notification settings - Fork 790
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
Restarting dead panes with the same command #2080
Comments
100% agree, note: I mentioned something like this in #580. I'd be great if it worked with |
There is a hacky way to "restart a tab" if you only want this for pre-defined commands and presuming the pane is not automically closed:
If you want this to work with arbitrary commands, you will have to use [1] https://wezfurlong.org/wezterm/config/lua/pane/get_user_vars.html (2) Multiple actions with a single key press: https://wezfurlong.org/wezterm/config/lua/keyassignment/Multiple.html |
Is your feature request related to a problem? Please describe.
I started using Wezterm on Windows, to connect to a couple of remote hosts via SSH. For now I have one tab per host, with a single pane in each (I attach remote tmux sessions). After the connection is lost, panes are "dead": I can see the previous output (thanks to the
CloseOnCleanExit
behavior), but panes are inactive. So far so good.The problem is to reconnect: new connections insist on using new tabs. This is annoying because:
Describe the solution you'd like
I would like a simple way to restart a dead pane, i.e. reuse the same pane and re-run the program that was previously run in it.
This could be achieved via a new action which I can bind to a key. If the pane is not dead, the action would not do anything or would show a warning.
There could also be a button on dead panes to allow 1-click reuse.
Describe alternatives you've considered
Current workaround described above.
Additional context
N/A.
The text was updated successfully, but these errors were encountered: