Skip to content
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

Add option(s) in tab context menu to kill running process and/or restart the tab #6653

Closed
Totalus opened this issue Jun 22, 2022 · 8 comments

Comments

@Totalus
Copy link

Totalus commented Jun 22, 2022

Is your feature request related to a problem? Please describe.

I sometimes run a command that I am unable to stop, even with Ctrl+C multiple times, it just keeps running. The only way I can stop it is to close the tab.

Describe the solution you'd like

I would like to be able to force kill the process running in a tab without having to close my tab and open a new one.

Describe alternatives you've considered

Currently I use the Duplicate option to duplicate my tab, which copies most of my context (title, color, path, etc.) to a new tab, and then I close the original tab.

Additional details

This could be easily implemented with an additional option in the tab's context menu. We could have one or possibly event both of the following:

  • Restart : Would restart the tab (similar to duplicating + closing original tab). This would keep most of the context (color, title, path), but would reset the environment variables.
  • Kill process : Would only force kill the running process. This would keep the context and the environment variables intact.
@Qiming-Liu
Copy link
Contributor

For PR #6709

image

Any advice or better solution feel free to let me know

@Totalus
Copy link
Author

Totalus commented Jul 3, 2022

Looks good to me 👍

@Qiming-Liu
Copy link
Contributor

Looks good to me 👍

Thanks!
As here #6709 (comment)
This will become a configurable hotkey function.

@Qiming-Liu
Copy link
Contributor

This issue can be closed.

@Remonli
Copy link

Remonli commented Jul 31, 2022

Can not find such restart tab in context menu.

env: 1.0.182 x64 portable on Win10 x64 2021 LTSC

1659273375413

@Totalus
Copy link
Author

Totalus commented Jul 31, 2022

This feature was added as a hotkey instead of a context menu item (reference). Not sure in which version it is released.

@Qiming-Liu
Copy link
Contributor

This feature was added as a hotkey instead of a context menu item (reference). Not sure in which version it is released.

Thank you. That is true. It's in Alpha 182.
image

@Remonli
Copy link

Remonli commented Aug 1, 2022

I found this note, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants