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

Option for prompt for closing against accidental closure #830

Closed
H0R1Z0N opened this issue Sep 29, 2023 · 3 comments
Closed

Option for prompt for closing against accidental closure #830

H0R1Z0N opened this issue Sep 29, 2023 · 3 comments

Comments

@H0R1Z0N
Copy link

H0R1Z0N commented Sep 29, 2023

Is your feature request related to a problem? Please describe.
I have often hard drive that i need to run long session of badblocks, often 40h+ session, i have a lot of shortcut on my mmorpg mouse and the mouse's in the bed where i sleep with my desktop, sometime, when handling my mouse to move it back when i wake or return in bed, i press the wrong shortcut and close terminator or press the x button on the taskbar when trying to switch screen session.

Describe the solution you'd like
I saw some 10yo post about an edit of a python 2 script of the terminator behavior for a closing prompt, which sadly python 2's not supported anymore for a while. Would it be possible to add the feature for a prompt if multiple windows tab or session are open and if at least a command's being run live in the terminal. I don't expect it to be too complicated to add.

Describe alternatives you've considered
Off course i could simply foreground/background each application to be sure they won't quit when i accidently press the wrong button, but that would not be conveniant.

Additional context
Since 2+ post on google give result about an edited python 2 script for terminator to add that behavior, i don't expect it to be too complicated to add.

I thank you for your great work, it's my favorite terminal emulator and i don't expect to try terminal hoping anytime soon, It's perfect when you need to do so much on a single screen.

@H0R1Z0N
Copy link
Author

H0R1Z0N commented Sep 29, 2023

I have no luck... I closed it again by accident and took a while to realise i did... Guess that will add another 20h of wait time on my long process i was doing...

@Vulcalien
Copy link
Member

We already have a similar feature, that asks confirmation before closing multiple terminals.

In the meanwhile, you could open another tab just to prevent from accidentally closing terminator, and make sure the setting is enabled. If it isn't enabled, go to the file .config/terminator/config and delete the line suppress_multiple_term_dialog = True.

But of course that's more than an hack than a solution. It shouldn't be too difficult to modify the existing feature to ask even if there is only one terminal.

@mattrose
Copy link
Member

mattrose commented Feb 9, 2024

Wrote a preferences gui for this as well

@mattrose mattrose closed this as completed Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants